##// END OF EJS Templates
py3: open patches.queue in binary mode...
Gregory Szorc -
r36124:bff95b00 default
parent child Browse files
Show More
@@ -445,9 +445,9 b' class queue(object):'
445 def __init__(self, ui, baseui, path, patchdir=None):
445 def __init__(self, ui, baseui, path, patchdir=None):
446 self.basepath = path
446 self.basepath = path
447 try:
447 try:
448 fh = open(os.path.join(path, 'patches.queue'))
448 with open(os.path.join(path, 'patches.queue'), r'rb') as fh:
449 cur = fh.read().rstrip()
449 cur = fh.read().rstrip()
450 fh.close()
450
451 if not cur:
451 if not cur:
452 curpath = os.path.join(path, 'patches')
452 curpath = os.path.join(path, 'patches')
453 else:
453 else:
General Comments 0
You need to be logged in to leave comments. Login now