changeset 6195:6e0c4d50b97e

Issue2551084 - Fix Inefficiency in roundup-admin
author John Rouillard <rouilj@ieee.org>
date Thu, 11 Jun 2020 23:10:25 -0400
parents 0f0dedd2f95d
children 56854f96d805
files CHANGES.txt roundup/admin.py
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/CHANGES.txt	Wed Jun 10 19:46:41 2020 -0400
+++ b/CHANGES.txt	Thu Jun 11 23:10:25 2020 -0400
@@ -25,6 +25,9 @@
   generate quoted values for all fields. This makes the string
   starting with = be interpreted as a string and not a formula. (John
   Rouillard as reported in the decomissioned bpo meta tracker IIRC.)
+- issue2551084 - Fix inefficiency in roundup-admin. Streamline code and
+  bring in line with 2.7 and newer python functionality. (Patch by Tom
+  Ekberg (tekberg); John Rouillard)
 
 Features:
 
--- a/roundup/admin.py	Wed Jun 10 19:46:41 2020 -0400
+++ b/roundup/admin.py	Thu Jun 11 23:10:25 2020 -0400
@@ -101,12 +101,12 @@
         """
         props = {}
         for arg in args:
-            l = arg.split('=')
+            l = arg.split('=', 1)
             # if = not in string, will return one element
             if len(l) < 2:
                 raise UsageError(_('argument "%(arg)s" not propname=value') %
                                  locals())
-            key, value = l[0], '='.join(l[1:])
+            key, value = l
             if value:
                 props[key] = value
             else:

Roundup Issue Tracker: http://roundup-tracker.org/