summaryrefslogtreecommitdiff
path: root/git-p4.py
diff options
context:
space:
mode:
Diffstat (limited to 'git-p4.py')
-rwxr-xr-xgit-p4.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/git-p4.py b/git-p4.py
index eb5bc28cf9..9a71a6690d 100755
--- a/git-p4.py
+++ b/git-p4.py
@@ -3563,7 +3563,8 @@ class P4Sync(Command, P4UserMap):
changes = []
if len(self.changesFile) > 0:
- output = open(self.changesFile).readlines()
+ with open(self.changesFile) as f:
+ output = f.readlines()
changeSet = set()
for line in output:
changeSet.add(int(line))