##// END OF EJS Templates
cvsps: switch a file open to a with statement...
Augie Fackler -
r43322:3b8a4587 default
parent child Browse files
Show More
@@ -138,7 +138,8 b' def createlog(ui, directory=None, root="'
138 138
139 139 # Get the real directory in the repository
140 140 try:
141 prefix = open(os.path.join('CVS','Repository'), 'rb').read().strip()
141 with open(os.path.join(b'CVS', b'Repository'), 'rb') as f:
142 prefix = f.read().strip()
142 143 directory = prefix
143 144 if prefix == ".":
144 145 prefix = ""
General Comments 0
You need to be logged in to leave comments. Login now