After swearing off Eclipse for many many years, I shamefully started using it again for the functionality provided by the PyDev plug-in. Despite living in the world’s ugliest IDE, PyDev is SUPER helpful in spotting errors and resolving dependencies. I tip my hat to the PyDev folks!
* using `isinstance()` on files checks against 2 classes instead of just 1 (a match for either returns true) * remove `u` from the beginning of strings (Python3 has no `unicode` or `basestring` types) * Python3 style exceptions * Use `.format()` over `%` (not strictly Python3, but still--it’s code modernization :P)
…he old `%`.
…ests.py. Also marked items for future tasks, tweaked docstrings, tweaked code to make repetitive statements read easier, and grouped all `do_` methods together inside the Cmd class.
…ould describe their purpose.
Oops! I noticed there was a bunch of extra crap left over from when I installed this module onto my own system. I thought it wouldn't have modified itself at the time (just the Python module library on my system), but I was wrong. Begone, useless cruft!
Copy of the Python module cmd2 by Catherine Devlin. Note that this is NOT the official copy (it’s at http://www.assembla.com/spaces/python-cmd2/wiki ). I’d rather just work using git + GitHub instead of hg + Assembla. ☺ OTOH, I fully intend to submit changes back to the official repo on Assembla—so don’t be shy, fork away. I’m happy for any help!