~inkscape.dev/inkscape-devlibs64/trunk

« back to all changes in this revision

Viewing changes to python/Lib/lib2to3/fixes/fix_basestring.py

  • Committer: Eduard Braun
  • Date: 2016-10-22 16:51:19 UTC
  • Revision ID: eduard.braun2@gmx.de-20161022165119-9eosgy6lp8j1kzli
Update Python to version 2.7.12

Included modules:
  coverage 4.2
  lxml 3.6.4
  numpy 1.11.2
  scour 0.35
  six 1.10.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
"""Fixer for basestring -> str."""
2
 
# Author: Christian Heimes
3
 
 
4
 
# Local imports
5
 
from .. import fixer_base
6
 
from ..fixer_util import Name
7
 
 
8
 
class FixBasestring(fixer_base.BaseFix):
9
 
    BM_compatible = True
10
 
 
11
 
    PATTERN = "'basestring'"
12
 
 
13
 
    def transform(self, node, results):
14
 
        return Name(u"str", prefix=node.prefix)
 
1
"""Fixer for basestring -> str."""
 
2
# Author: Christian Heimes
 
3
 
 
4
# Local imports
 
5
from .. import fixer_base
 
6
from ..fixer_util import Name
 
7
 
 
8
class FixBasestring(fixer_base.BaseFix):
 
9
    BM_compatible = True
 
10
 
 
11
    PATTERN = "'basestring'"
 
12
 
 
13
    def transform(self, node, results):
 
14
        return Name(u"str", prefix=node.prefix)