Commit f3d380e6 authored by Jérome Perrin's avatar Jérome Perrin Committed by Arnaud Fontaine

forge: python3 compatibility for git tab

parent 3da96bd5
...@@ -211,7 +211,7 @@ class Git(WorkingCopy): ...@@ -211,7 +211,7 @@ class Git(WorkingCopy):
diff_dict = {} diff_dict = {}
if out: if out:
out = iter(out.split('\ndiff --git ')) out = iter(out.split('\ndiff --git '))
for stat in out.next().splitlines(): for stat in next(out).splitlines():
stat, path = stat.split()[4:] stat, path = stat.split()[4:]
stat_dict[path] = stat stat_dict[path] = stat
# Emulate svn output for compatibility with erp5.component.module.DiffUtils # Emulate svn output for compatibility with erp5.component.module.DiffUtils
...@@ -230,7 +230,7 @@ class Git(WorkingCopy): ...@@ -230,7 +230,7 @@ class Git(WorkingCopy):
path_dict = dict.fromkeys(self.git('ls-files').splitlines(), '') path_dict = dict.fromkeys(self.git('ls-files').splitlines(), '')
path_dict.update(self._patch_with_raw()[0]) path_dict.update(self._patch_with_raw()[0])
node_dict = {} node_dict = {}
path_list = path_dict.keys() path_list = list(path_dict.keys())
for path in path_list: for path in path_list:
status = path_dict[path] status = path_dict[path]
parent = os.path.dirname(path) parent = os.path.dirname(path)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment