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 |
|