share: use dict literal instead of dict(key=value)
authorYuya Nishihara <yuya@tcha.org>
Sat, 24 Jun 2017 13:20:30 +0900
changeset 33021 24c0a9a7fa86
parent 33020 fac9941bd542
child 33022 ce96efec8112
share: use dict literal instead of dict(key=value) check-code.py has the rule, but it isn't smart enough to catch this.
hgext/share.py
--- a/hgext/share.py	Thu Jun 22 03:24:12 2017 +0530
+++ b/hgext/share.py	Sat Jun 24 13:20:30 2017 +0900
@@ -132,10 +132,10 @@
     if pool:
         pool = util.expandpath(pool)
 
-    opts[r'shareopts'] = dict(
-        pool=pool,
-        mode=ui.config('share', 'poolnaming', 'identity'),
-    )
+    opts[r'shareopts'] = {
+        'pool': pool,
+        'mode': ui.config('share', 'poolnaming', 'identity'),
+    }
 
     return orig(ui, source, *args, **opts)