py3: handle keyword arguments correctly in obsolete.py
authorPulkit Goyal <7895pulkit@gmail.com>
Sun, 10 Dec 2017 04:47:49 +0530
changeset 35365 7354fda50e8b
parent 35364 03112a2c9c83
child 35366 dce761558329
py3: handle keyword arguments correctly in obsolete.py Differential Revision: https://phab.mercurial-scm.org/D1638
mercurial/obsolete.py
--- a/mercurial/obsolete.py	Sun Dec 10 04:47:34 2017 +0530
+++ b/mercurial/obsolete.py	Sun Dec 10 04:47:49 2017 +0530
@@ -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: