| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
* Some Py2/Py3 compat blocks were simplified to Py3 only
* some sequences of define-cleaup-function + atexit.register
were changed to use the decorator (this works if func needs to
take no arguments)
* Lightly update a bunch of docstrings in TestCmd, and reformat
a few places, towards the style we're generally using now.
* call_python() in TestCmdTests was modernized to use subprocess.run
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
"for i in range(len(foo))" idiom changed to iterate directly over lists
instead of indexing them. zip() generates the iterator in the case with
two lists. reversed() used for the Windows drive-letter test.
gdbm is not gone, just renamed. change test to find under either name.
Use a context manager for closing StringIO objects opened for capturing
standard I/O streams.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| |
|
|
see: http://python-notes.curiousefficiency.org/en/latest/python_concepts/import_traps.html#the-name-shadowing-trap
|