Mercurial > public > mercurial-scm > hg
comparison mercurial/archival.py @ 36726:009da8c28e4d
archival: fix a missing r'' on a kwargs check
# skip-blame just an r prefix
Differential Revision: https://phab.mercurial-scm.org/D2671
author | Augie Fackler <augie@google.com> |
---|---|
date | Sun, 04 Mar 2018 16:06:10 -0500 |
parents | 7f9a6f5f7612 |
children | d3c231f8d27d |
comparison
equal
deleted
inserted
replaced
36725:93b8c83ef136 | 36726:009da8c28e4d |
---|---|
123 | 123 |
124 class GzipFileWithTime(gzip.GzipFile): | 124 class GzipFileWithTime(gzip.GzipFile): |
125 | 125 |
126 def __init__(self, *args, **kw): | 126 def __init__(self, *args, **kw): |
127 timestamp = None | 127 timestamp = None |
128 if 'timestamp' in kw: | 128 if r'timestamp' in kw: |
129 timestamp = kw.pop(r'timestamp') | 129 timestamp = kw.pop(r'timestamp') |
130 if timestamp is None: | 130 if timestamp is None: |
131 self.timestamp = time.time() | 131 self.timestamp = time.time() |
132 else: | 132 else: |
133 self.timestamp = timestamp | 133 self.timestamp = timestamp |