changeset 33804:24c0a9a7fa86

share: use dict literal instead of dict(key=value) check-code.py has the rule, but it isn't smart enough to catch this.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 24 Jun 2017 13:20:30 +0900
parents fac9941bd542
children ce96efec8112
files hgext/share.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/share.py
+++ b/hgext/share.py
@@ -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)