Beispiel #1
0
 def __init__(self, f):
     CCodeWriter.__init__(self, self)
     self.buffer = StringIO()
     self.real_f = f
     self.annotations = []
     self.last_pos = None
     self.code = {}
Beispiel #2
0
 def __init__(self, f):
     CCodeWriter.__init__(self, self)
     self.buffer = StringIO()
     self.real_f = f
     self.annotations = []
     self.last_pos = None
     self.code = {}
Beispiel #3
0
 def __init__(self, create_from=None, buffer=None, copy_formatting=True):
     CCodeWriter.__init__(self, create_from, buffer, copy_formatting=True)
     if create_from is None:
         self.annotation_buffer = StringIO()
         self.annotations = []
         self.last_pos = None
         self.code = {}
     else:
         # When creating an insertion point, keep references to the same database
         self.annotation_buffer = create_from.annotation_buffer
         self.annotations = create_from.annotations
         self.code = create_from.code
         self.last_pos = create_from.last_pos
Beispiel #4
0
 def __init__(self, create_from=None, buffer=None, copy_formatting=True):
     CCodeWriter.__init__(self, create_from, buffer, copy_formatting=True)
     if create_from is None:
         self.annotation_buffer = StringIO()
         self.annotations = []
         self.last_pos = None
         self.code = {}
     else:
         # When creating an insertion point, keep references to the same database
         self.annotation_buffer = create_from.annotation_buffer
         self.annotations = create_from.annotations
         self.code = create_from.code
         self.last_pos = create_from.last_pos