D2137: py3: use raw string for file open mode

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Sun Feb 11 20:39:45 EST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG788b2e8530ae: py3: use raw string for file open mode (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2137?vs=5422&id=5438

REVISION DETAIL
  https://phab.mercurial-scm.org/D2137

AFFECTED FILES
  mercurial/archival.py

CHANGE DETAILS

diff --git a/mercurial/archival.py b/mercurial/archival.py
--- a/mercurial/archival.py
+++ b/mercurial/archival.py
@@ -218,7 +218,7 @@
                 dest.tell()
             except (AttributeError, IOError):
                 dest = tellable(dest)
-        self.z = zipfile.ZipFile(dest, 'w',
+        self.z = zipfile.ZipFile(dest, r'w',
                                  compress and zipfile.ZIP_DEFLATED or
                                  zipfile.ZIP_STORED)
 



To: indygreg, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list