Lines Matching refs:str
212 if context: stmt += str(context)
213 if match: stmt += str(match)
248 typestr = str(inst)
289 def doc(self,str):
291 d = str.replace('\n',' ')
316 str = ""
317 if len(self.docstr) > 0: str += '"""'+self.docstr+'"""\n'
319 if l.startswith('import'): str += l+'\n'
320 str += 'class _PyCmplNoType:\n def __getattr__(self,name):\n return None\n'
322 str += sub.get_code()
324 if not l.startswith('import'): str += l+'\n'
326 return str
353 str = '%sclass %s' % (self.currentindent(),self.name)
354 if len(self.supers) > 0: str += '(%s)' % ','.join(self.supers)
355 str += ':\n'
356 if len(self.docstr) > 0: str += self.childindent()+'"""'+self.docstr+'"""\n'
358 for s in self.subscopes: str += s.get_code()
360 str += '%spass\n' % self.childindent()
361 return str
371 str = "%sdef %s(%s):\n" % \
373 if len(self.docstr) > 0: str += self.childindent()+'"""'+self.docstr+'"""\n'
374 str += "%spass\n" % self.childindent()
375 return str
433 name += "%s " % str(token)
466 if tokentype == tokenize.STRING or token == 'str':
610 def _sanitize(str):
613 for c in str: