Lines Matching refs:str
194 if context: stmt += str(context)
195 if match: stmt += str(match)
230 typestr = str(inst)
271 def doc(self,str):
273 d = str.replace('\n',' ')
298 str = ""
299 if len(self.docstr) > 0: str += '"""'+self.docstr+'"""\n'
301 if l.startswith('import'): str += l+'\n'
302 str += 'class _PyCmplNoType:\n def __getattr__(self,name):\n return None\n'
304 str += sub.get_code()
306 if not l.startswith('import'): str += l+'\n'
308 return str
335 str = '%sclass %s' % (self.currentindent(),self.name)
336 if len(self.supers) > 0: str += '(%s)' % ','.join(self.supers)
337 str += ':\n'
338 if len(self.docstr) > 0: str += self.childindent()+'"""'+self.docstr+'"""\n'
340 for s in self.subscopes: str += s.get_code()
342 str += '%spass\n' % self.childindent()
343 return str
353 str = "%sdef %s(%s):\n" % \
355 if len(self.docstr) > 0: str += self.childindent()+'"""'+self.docstr+'"""\n'
356 str += "%spass\n" % self.childindent()
357 return str
415 name += "%s " % str(token)
448 if tokentype == tokenize.STRING or token == 'str':
592 def _sanitize(str):
595 for c in str: