Patchwork D2137: py3: use raw string for file open mode

login
register
mail settings
Submitter phabricator
Date Feb. 12, 2018, 1:39 a.m.
Message ID <f8feb0c577a6048bcfd7917d002e3ae1@localhost.localdomain>
Download mbox | patch
Permalink /patch/27604/
State Not Applicable
Headers show

Comments

phabricator - Feb. 12, 2018, 1:39 a.m.
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




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

Patch

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)