Commit Graph

5 Commits

Author SHA1 Message Date
David Wilson 826c477061 tests: built-in exceptions live in a different module in 3.x 2018-07-07 14:55:47 +01:00
David Wilson ec176bf1f8 tests: unittest2 import behaviour appears to differ between 2/3.
In 2 the module is loaded as __main__
In 3 it has its actual name.
2018-07-07 14:55:47 +01:00
David Wilson 410016ff47 Initial Python 3.x port work.
* ansible: use unicode_literals everywhere since it only needs to be
  compatible back to 2.6.
* compat/collections.py: delete this entirely and rip out the parts of
  functools that require it.
* Introduce serializable Kwargs dict subclass that translates keys to
  Unicode on instantiation.
* enable_debug_logging() must set _v/_vv globals.
* cStringIO does not exist in 3.x.
* Treat IOLogger and LogForwarder input as latin-1.
* Avoid ResourceWarnings in first stage by explicitly closing fps.
* Fix preamble_size.py syntax errors.
2018-07-07 14:55:47 +01:00
David Wilson 78d375e0c5 core: CallError should handle any exception type.
Previously SystemExit would be pickled.
2018-05-12 00:51:50 +01:00
David Wilson 7b12f84366 core: support CallError(str) for service.py. 2018-03-29 11:53:02 +05:45