hgext/convert/cvsps.py
changeset 43052 3b8a4587a456
parent 41759 aaad36b88298
child 43076 2372284d9457
--- a/hgext/convert/cvsps.py	Sat Oct 05 12:03:19 2019 +0200
+++ b/hgext/convert/cvsps.py	Sat Oct 05 11:56:35 2019 -0400
@@ -138,7 +138,8 @@
 
         # Get the real directory in the repository
         try:
-            prefix = open(os.path.join('CVS','Repository'), 'rb').read().strip()
+            with open(os.path.join(b'CVS', b'Repository'), 'rb') as f:
+                prefix = f.read().strip()
             directory = prefix
             if prefix == ".":
                 prefix = ""