setup.py: move from dict() construction to {} literals
authorAugie Fackler <raf@durin42.com>
Wed, 12 Mar 2014 13:29:29 -0400
changeset 20687 7d4d04299927
parent 20686 c69f62906358
child 20688 a61ed1c2d7a7
setup.py: move from dict() construction to {} literals The latter are both faster and more consistent across Python 2 and 3.
setup.py
--- a/setup.py	Wed Mar 12 13:21:30 2014 -0400
+++ b/setup.py	Wed Mar 12 13:29:29 2014 -0400
@@ -554,9 +554,11 @@
       package_data=packagedata,
       cmdclass=cmdclass,
       distclass=hgdist,
-      options=dict(py2exe=dict(packages=['hgext', 'email']),
-                   bdist_mpkg=dict(zipdist=True,
-                                   license='COPYING',
-                                   readme='contrib/macosx/Readme.html',
-                                   welcome='contrib/macosx/Welcome.html')),
+      options={'py2exe': {'packages': ['hgext', 'email']},
+               'bdist_mpkg': {'zipdist': True,
+                              'license': 'COPYING',
+                              'readme': 'contrib/macosx/Readme.html',
+                              'welcome': 'contrib/macosx/Welcome.html',
+                              },
+               },
       **extra)