Patchwork D1638: py3: handle keyword arguments correctly in obsolete.py

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

Comments

phabricator - Dec. 10, 2017, 2:39 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/D1638

AFFECTED FILES
  mercurial/obsolete.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/obsolete.py b/mercurial/obsolete.py
--- a/mercurial/obsolete.py
+++ b/mercurial/obsolete.py
@@ -776,7 +776,7 @@ 
     # rely on obsstore class default when possible.
     kwargs = {}
     if defaultformat is not None:
-        kwargs['defaultformat'] = defaultformat
+        kwargs[r'defaultformat'] = defaultformat
     readonly = not isenabled(repo, createmarkersopt)
     store = obsstore(repo.svfs, readonly=readonly, **kwargs)
     if store and readonly: