Skip to content

Commit e596f42

Browse files
committed
restored pre python/jython 2.5 support
1 parent 8de7d2d commit e596f42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/robotremoteserver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def parse_args(args):
315315
actions = {'stop': stop, 'test': test}
316316
if not args or len(args) > 2 or args[0] not in actions:
317317
sys.exit('Usage: python -m robotremoteserver test|stop [uri]')
318-
uri = args[1] if len(args) == 2 else 'http://127.0.0.1:8270'
318+
uri = len(args) == 2 and args[1] or 'http://127.0.0.1:8270'
319319
if '://' not in uri:
320320
uri = 'http://' + uri
321321
return actions[args[0]], uri

0 commit comments

Comments
 (0)