summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2013-04-08 04:51:05 +0200
committerhut <hut@lavabit.com>2013-04-08 04:51:05 +0200
commit234a50aa54d1e62347b49f432f76cee5df48893d (patch)
treedc4df15ae075acd200198bad2b7873e9d4b50704
parent1f73d69ef3362239d06f4e0cdf806565f431f025 (diff)
downloadranger-234a50aa54d1e62347b49f432f76cee5df48893d.tar.gz
ext.vcs.vcs: use more traditional syntax in dict expression
-rw-r--r--ranger/ext/vcs/vcs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/ext/vcs/vcs.py b/ranger/ext/vcs/vcs.py
index dfd187cb..52802cfa 100644
--- a/ranger/ext/vcs/vcs.py
+++ b/ranger/ext/vcs/vcs.py
@@ -268,7 +268,7 @@ class Vcs(object):
         if path:
             path = os.path.join(self.root, path)
             if os.path.commonprefix([self.root, path]) == self.root:
-                return {p: st for p, st in self.status.items() if self._path_contains(path, os.path.join(self.root, p))}
+                return dict((p, st) for p, st in self.status.items() if self._path_contains(path, os.path.join(self.root, p)))
             else:
                 return {}
         else: