home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / lib / python2.6 / lib2to3 / fixes / fix_basestring.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-04-20  |  779 b   |  15 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. '''Fixer for basestring -> str.'''
  5. from  import fixer_base
  6. from fixer_util import Name
  7.  
  8. class FixBasestring(fixer_base.BaseFix):
  9.     PATTERN = "'basestring'"
  10.     
  11.     def transform(self, node, results):
  12.         return Name('str', prefix = node.get_prefix())
  13.  
  14.  
  15.