Chad Whitacre
|
93d4a8373f
|
Move ReallyEqualMixin and s31e back to common_util
s31e = skip_if_cannot_represent_filename
|
2020-09-30 23:31:13 -04:00 |
|
Itamar Turner-Trauring
|
97c3be0509
|
Make quote_* and friends return unicode.
|
2020-08-17 13:29:49 -04:00 |
|
Itamar Turner-Trauring
|
03ed0fd66f
|
Another function that should be a no-op on Python 3.
|
2020-08-17 11:29:09 -04:00 |
|
Itamar Turner-Trauring
|
2cc2cb6a7f
|
Rename to_str() to the more accurate to_bytes().
|
2020-08-14 13:49:48 -04:00 |
|
Itamar Turner-Trauring
|
a3714a9970
|
Fix whitespace.
|
2020-08-13 16:32:32 -04:00 |
|
Itamar Turner-Trauring
|
e113cba8d0
|
Address review comments.
|
2020-08-13 15:02:59 -04:00 |
|
Itamar Turner-Trauring
|
5a0fa7ff73
|
Test unicode_to_argv().
|
2020-08-12 15:40:52 -04:00 |
|
Itamar Turner-Trauring
|
e03c2a759f
|
Port test_encodingutil.py to Python 3.
|
2020-08-12 15:14:04 -04:00 |
|
Itamar Turner-Trauring
|
b04a65fc16
|
And more progress to Python 3.
|
2020-08-12 14:54:07 -04:00 |
|
Itamar Turner-Trauring
|
e9d67b8d0f
|
Even more progress towards Python 3 support.
|
2020-08-12 14:32:22 -04:00 |
|
Itamar Turner-Trauring
|
f7e28ffb0b
|
More progress towards Python 3.
|
2020-08-12 14:18:02 -04:00 |
|
Itamar Turner-Trauring
|
53bdc10e19
|
Some steps towards Python 3 support.
|
2020-08-12 13:10:10 -04:00 |
|
Itamar Turner-Trauring
|
e13c0cf4d3
|
Reorganize imports to make Python 3 support easier.
|
2020-08-12 10:23:30 -04:00 |
|
heartsucker
|
0750dbac38
|
updated all python files to use pep-3110 exception syntax for python3 compatibility
|
2019-04-04 11:57:58 +02:00 |
|
heartsucker
|
df9243a3f4
|
updated test code to use print function over print statement
|
2019-03-22 17:32:36 +01:00 |
|
Brian Warner
|
1877bd38b9
|
consolidate skip_if_cannot_represent_filename()
Remove duplicate copies of this utility, move it from a mixin/test-class
method to being a simple function in common_util.py
|
2016-09-09 15:40:01 -07:00 |
|
Daira Hopwood
|
3fab5caa02
|
test_encodingutil: fixes for Unix.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
b53efdbf8b
|
Fix a corner case for to_filepath on Windows to make it consistent with Unix.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
b9eb8932b6
|
test_encodingutil: add tests for FilePath-related functions.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
1f7069e622
|
test_encodingutil: use self.patch rather than modifying encodingutil.io_encoding directly.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2015-12-28 20:52:51 +00:00 |
|
Daira Hopwood
|
c830419e04
|
Eliminate mock dependency.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2015-07-17 22:12:25 +01:00 |
|
Daira Hopwood
|
21226cbb82
|
Add from_utf8_or_none and tests.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2015-03-24 16:46:40 +00:00 |
|
Daira Hopwood
|
9ac392802b
|
Test the quotemarks=True and quotemarks=False options of quote_local_unicode_path.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2015-02-05 02:22:27 +00:00 |
|
Daira Hopwood
|
d53c7ee905
|
Test the quotemarks=False option of encodingutil.quote_path.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2015-02-05 02:13:23 +00:00 |
|
Daira Hopwood
|
14f783086f
|
Change uses of os.path.expanduser and os.path.abspath. refs #2235
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2015-01-30 00:50:18 +00:00 |
|
Daira Hopwood
|
95f98e1aae
|
Quote local paths correctly. refs #2235
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2015-01-30 00:05:20 +00:00 |
|
David-Sarah Hopwood
|
07c26ff805
|
Only quote newline characters where necessary. fixes #1484
Signed-off-by: David-Sarah Hopwood <david-sarah@jacaranda.org>
|
2013-03-07 16:22:47 +00:00 |
|
Brian Warner
|
8e69b94588
|
Make platform-detection code tolerate linux-3.0, patch by zooko.
Otherwise address-autodetection can't find ifconfig. refs #1536
|
2011-09-15 13:26:20 -07:00 |
|
david-sarah
|
bbed522033
|
Remove all trailing whitespace from .py files.
|
2011-08-08 17:11:17 -07:00 |
|
david-sarah
|
f9d218c673
|
encodingutil: argv and output encodings are always the same on all platforms. Lose the unnecessary generality of them being different. fixes #1120
|
2011-06-29 11:53:56 -07:00 |
|
david-sarah
|
daf2b8314a
|
test_encodingutil.py: test_argv_to_unicode modified the wrong encoding variable. fixes #1214
|
2010-10-22 20:58:10 -07:00 |
|
david-sarah
|
37b07a545f
|
Changes to Tahoe needed to work with new zetuptoolz (that does not use .exe wrappers on Windows), and to support Unicode arguments and stdout/stderr -- v5
|
2010-07-25 01:32:16 -07:00 |
|
david-sarah
|
28e6ad51a7
|
util.encodingutil: change quote_output to do less unnecessary escaping, and to use double-quotes more consistently when needed. This version avoids u-escaping for characters that are representable in the output encoding, when double quotes are used, and includes tests. fixes #1135
|
2010-07-23 00:53:14 -07:00 |
|
david-sarah
|
618db4867c
|
Replace uses of os.path.abspath with abspath_expanduser_unicode where necessary. This makes basedir paths consistently represented as Unicode.
|
2010-07-21 17:14:18 -07:00 |
|
david-sarah
|
638a3b2af4
|
test_encodingutil: correct an error in the previous patch to StdlibUnicode.test_open_representable.
|
2010-07-18 08:14:20 -07:00 |
|
david-sarah
|
9a4a864573
|
test_encodingutil: StdlibUnicode.test_open_representable no longer uses a mock.
|
2010-07-18 05:54:12 -07:00 |
|
david-sarah
|
bdb10553eb
|
test_encodingutil: fix test_open_representable, which is only valid when run on a platform for which we know an unrepresentable filename.
|
2010-07-17 20:03:33 -07:00 |
|
david-sarah
|
a8161c915a
|
Correct stringutils->encodingutil patch to be the newer version, rather than the old version that was committed in error.
|
2010-07-17 18:34:35 -07:00 |
|
david-sarah
|
c59f9b162f
|
stringutils: add test for when sys.stdout has no encoding attribute (fixes #1099).
|
2010-07-16 21:58:16 -07:00 |
|
david-sarah
|
11077ea74d
|
Rename stringutils to encodingutil, and drop listdir_unicode and open_unicode (since the Python stdlib functions work fine with Unicode paths). Also move some utility functions to fileutil.
|
2010-07-11 17:30:15 -07:00 |
|