summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorcatherine <catherine@Drou>2010-02-16 12:36:14 -0500
committercatherine <catherine@Drou>2010-02-16 12:36:14 -0500
commit0560939471a689c24e095ab183626ad5855bf83e (patch)
tree2ee252a6430f2ac1c69bc3d11465f8d9a163a4eb /cmd2.py
parente3b12ecf2120f799485bd3d5719b6f55666f8ebf (diff)
downloadcmd2-hg-0560939471a689c24e095ab183626ad5855bf83e.tar.gz
detect lists with __reversed__ not __getslice__
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2.py b/cmd2.py
index 336fa8c..729d37e 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -306,7 +306,7 @@ class StubbornDict(dict):
'Generates dictionary from string or list of strings'
if hasattr(arg, 'splitlines'):
arg = arg.splitlines()
- if hasattr(arg, '__getslice__'):
+ if hasattr(arg, '__reversed__'):
result = {}
for a in arg:
a = a.strip()