##// END OF EJS Templates
fix_bytesmod: fix defects in fix_bytesmod so it produces working code...
Augie Fackler -
r20399:74daabdf default
parent child Browse files
Show More
@@ -33,9 +33,10 b' class FixBytesmod(fixer_base.BaseFix):'
33 '''
33 '''
34
34
35 def transform(self, node, results):
35 def transform(self, node, results):
36 if self.filename in blacklist:
36 for bfn in blacklist:
37 return
37 if self.filename.endswith(bfn):
38 elif self.filename == 'mercurial/util.py':
38 return
39 if not self.filename.endswith('mercurial/py3kcompat.py'):
39 touch_import('.', 'py3kcompat', node=node)
40 touch_import('.', 'py3kcompat', node=node)
40
41
41 formatstr = results['formatstr'].clone()
42 formatstr = results['formatstr'].clone()
@@ -60,4 +61,3 b' class FixBytesmod(fixer_base.BaseFix):'
60
61
61 call = Call(Name('bytesformatter', prefix=' '), args)
62 call = Call(Name('bytesformatter', prefix=' '), args)
62 return call
63 return call
63
General Comments 0
You need to be logged in to leave comments. Login now