Commit Graph

8 Commits (eb788dd8f62a574f9df8a74b472094e4e28a778e)

Author SHA1 Message Date
Toshio Kuratomi 378dc561cb Possible fix for the first newline and triple newline problems 2015-03-30 22:47:56 -07:00
Toshio Kuratomi 43c1a97447 Various unicode and backslash escape cleanups
* Do backslash escape parsing in parse_kv() [was being done in the copy
  module purely for newlines in the copy module's content param before]
* Make parse_kv always return unicode
* Add bandaid to transform args to unicode until we can fix things
  calling parse_kv to always send it unicode.
* Make split_args deal with unicode internally.  Warning, no bandaid for
  things calling split_args without giving it unicode (shouldn't matter
  as dealt with str internally before)
* Fix copy and unarchive action plugins to not use setdefaultencoding
* Remove escaping from copy (it was broken and made content into latin-1
  sometimes). escaping is now in parse_kv.
* Expect that content is now a unicode string so transform to bytes just
  before writing to the file.
* Add initial unittests for split_args and parse_kv.  4 failing
  tests.because split_args is injecting extra newlines.
2015-03-30 19:19:34 -07:00
James Cammarata 02bc014bcd More work on getting integration tests running for v2 2015-01-15 01:14:22 -06:00
Toshio Kuratomi 18f30b00ba Add python3-compat boiler to all core files 2014-10-15 19:22:54 -04:00
Toshio Kuratomi 938b2108d0 Move the v2 tests under the v2 tree 2014-10-15 18:08:28 -04:00
Michael DeHaan 79f41d9c1a This makes the module args parser more functional to eliminate side effects and eliminiates the 'return None' error path
to make sure we are handling more use cases.  Some paths are not yet complete, including most likely handling of the 'raw'
module.
2014-10-08 19:46:34 -04:00
James Cammarata c83a833740 New v2 ModuleArgsParser code and fixing up tests/other task code 2014-10-08 10:35:58 -05:00
Michael DeHaan 21642c0fbf We need module args specific parsing classes. 2014-10-07 14:56:42 -04:00