Patchwork D1625: py3: handle keyword arguments correctly in archival.py

login
register
mail settings
Submitter phabricator
Date Dec. 10, 2017, 1:08 a.m.
Message ID <differential-rev-PHID-DREV-mxivvpj55w2ixoecynrz-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/26142/
State Superseded
Headers show

Comments

phabricator - Dec. 10, 2017, 1:08 a.m.
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  mercurial/archival.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/archival.py b/mercurial/archival.py
--- a/mercurial/archival.py
+++ b/mercurial/archival.py
@@ -126,7 +126,7 @@ 
         def __init__(self, *args, **kw):
             timestamp = None
             if 'timestamp' in kw:
-                timestamp = kw.pop('timestamp')
+                timestamp = kw.pop(r'timestamp')
             if timestamp is None:
                 self.timestamp = time.time()
             else: