Plugins/CheckerPlugins/CodeStyleChecker/pep8.py

changeset 3629
98e90f613114
parent 3617
2f859c5dcfb4
child 3670
f0cb7579c0b4
equal deleted inserted replaced
3628:deb5973080a9 3629:98e90f613114
1139 elif line[:3] == '+++': 1139 elif line[:3] == '+++':
1140 path = line[4:].split('\t', 1)[0] 1140 path = line[4:].split('\t', 1)[0]
1141 if path[:2] == 'b/': 1141 if path[:2] == 'b/':
1142 path = path[2:] 1142 path = path[2:]
1143 rv[path] = set() 1143 rv[path] = set()
1144 return dict([(os.path.join(parent, path), rows) 1144 return dict([(os.path.join(parent, path_), rows)
1145 for (path, rows) in rv.items() 1145 for (path_, rows) in rv.items()
1146 if rows and filename_match(path, patterns)]) 1146 if rows and filename_match(path_, patterns)])
1147 1147
1148 1148
1149 def normalize_paths(value, parent=os.curdir): 1149 def normalize_paths(value, parent=os.curdir):
1150 """Parse a comma-separated list of paths. 1150 """Parse a comma-separated list of paths.
1151 1151

eric ide

mercurial