Show More
@@ -486,7 +486,8 class cookiehandler(urlreq.basehandler): | |||
|
486 | 486 | |
|
487 | 487 | cookiefile = util.expandpath(cookiefile) |
|
488 | 488 | try: |
|
489 |
cookiejar = util.cookielib.MozillaCookieJar( |
|
|
489 | cookiejar = util.cookielib.MozillaCookieJar( | |
|
490 | pycompat.fsdecode(cookiefile)) | |
|
490 | 491 | cookiejar.load() |
|
491 | 492 | self.cookiejar = cookiejar |
|
492 | 493 | except util.cookielib.LoadError as e: |
@@ -591,6 +592,6 def open(ui, url_, data=None): | |||
|
591 | 592 | url_, authinfo = u.authinfo() |
|
592 | 593 | else: |
|
593 | 594 | path = util.normpath(os.path.abspath(url_)) |
|
594 | url_ = 'file://' + urlreq.pathname2url(path) | |
|
595 | url_ = 'file://' + pycompat.bytesurl(urlreq.pathname2url(path)) | |
|
595 | 596 | authinfo = None |
|
596 | 597 | return opener(ui, authinfo).open(pycompat.strurl(url_), data) |
General Comments 0
You need to be logged in to leave comments.
Login now