From 234a50aa54d1e62347b49f432f76cee5df48893d Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 8 Apr 2013 04:51:05 +0200 Subject: ext.vcs.vcs: use more traditional syntax in dict expression --- ranger/ext/vcs/vcs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit 1.4.1-2-gfad0