diff options
author | catherine <catherine@Drou> | 2010-02-16 12:36:14 -0500 |
---|---|---|
committer | catherine <catherine@Drou> | 2010-02-16 12:36:14 -0500 |
commit | 0560939471a689c24e095ab183626ad5855bf83e (patch) | |
tree | 2ee252a6430f2ac1c69bc3d11465f8d9a163a4eb /cmd2.py | |
parent | e3b12ecf2120f799485bd3d5719b6f55666f8ebf (diff) | |
download | cmd2-hg-0560939471a689c24e095ab183626ad5855bf83e.tar.gz |
detect lists with __reversed__ not __getslice__
Diffstat (limited to 'cmd2.py')
-rwxr-xr-x | cmd2.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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() |