Skip to content

Commit fd7bbad

Browse files
committed
Removed redundant code; fix help text for do_security
There were two checks to see if the arg=val included =.
1 parent 9388d4f commit fd7bbad

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

roundup/admin.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,8 @@ def props_from_args(self, args):
101101
"""
102102
props = {}
103103
for arg in args:
104-
if arg.find('=') == -1:
105-
raise UsageError(_('argument "%(arg)s" not propname=value') %
106-
locals())
107104
l = arg.split('=')
105+
# if = not in string, will return one element
108106
if len(l) < 2:
109107
raise UsageError(_('argument "%(arg)s" not propname=value') %
110108
locals())
@@ -1485,7 +1483,8 @@ def do_reindex(self, args, desre=re.compile('([A-Za-z]+)([0-9]+)')):
14851483

14861484
def do_security(self, args):
14871485
''"""Usage: security [Role name]
1488-
Display the Permissions available to one or all Roles.
1486+
1487+
Display the Permissions available to one or all Roles.
14891488
"""
14901489
if len(args) == 1:
14911490
role = args[0]

0 commit comments

Comments
 (0)