summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2017-02-07 20:21:32 -0500
committerTodd Leonhardt <todd.leonhardt@gmail.com>2017-02-07 20:21:32 -0500
commit184c1d9103f4b86e0d051fa0281c18a89bd0ad36 (patch)
tree89077cecbb1b90f11c611edc7044ed64d20a5599 /cmd2.py
parent432fd66a6fb19c06e7a048aea1957dc7302166c1 (diff)
downloadcmd2-git-184c1d9103f4b86e0d051fa0281c18a89bd0ad36.tar.gz
Simplified a couple if's
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2.py b/cmd2.py
index 2c08ddc8..28264fb3 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -1134,7 +1134,7 @@ class Cmd(cmd.Cmd):
'''Shows value of a parameter.'''
# If arguments are being passed as a list instead of as a string
if USE_ARG_LIST:
- if arg and len(arg) > 0:
+ if arg:
arg = arg[0]
else:
arg = ''
@@ -1255,7 +1255,7 @@ class Cmd(cmd.Cmd):
"""
# If arguments are being passed as a list instead of as a string
if USE_ARG_LIST:
- if arg and len(arg) > 0:
+ if arg:
arg = arg[0]
else:
arg = ''