mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
small grammar fix in multibyte filename messages
This commit is contained in:
parent
33cd5e4978
commit
895899b7bb
@ -114,8 +114,8 @@ def main(argv):
|
||||
return 1
|
||||
except UnicodeError:
|
||||
print >>sys.stderr, (
|
||||
'Error: Multibyte filename did not support on this filesystem '
|
||||
'encoding: %s' % fs_encoding)
|
||||
'Error: Multibyte filename not supported on this filesystem '
|
||||
'encoding (%r).' % fs_encoding)
|
||||
return 1
|
||||
|
||||
filenames = args[2:]
|
||||
|
@ -81,8 +81,8 @@ def walk(top, topdown=True, followlinks=False):
|
||||
fullpath = path.join(top, name)
|
||||
except UnicodeError:
|
||||
print >>sys.stderr, (
|
||||
'%s:: ERROR: multibyte filename did not support on this filesystem '
|
||||
'encoding %r, skipped.' % (name, fs_encoding))
|
||||
'%s:: ERROR: multibyte filename not supported on this '
|
||||
'filesystem encoding %r, skipped.' % (name, fs_encoding))
|
||||
continue
|
||||
if path.isdir(fullpath):
|
||||
dirs.append(name)
|
||||
|
@ -81,7 +81,7 @@ def test_multibyte_path(app):
|
||||
except UnicodeEncodeError:
|
||||
from path import FILESYSTEMENCODING
|
||||
raise SkipTest(
|
||||
'multibyte filename did not support on this filesystem encoding: '
|
||||
'multibyte filename not supported on this filesystem encoding: '
|
||||
'%s', FILESYSTEMENCODING)
|
||||
|
||||
(srcdir / mb_name / (mb_name + '.txt')).write_text(dedent("""
|
||||
|
@ -118,7 +118,7 @@ def test_do_prompt_with_multibyte():
|
||||
qs.do_prompt(d, 'k1', 'Q1', default=u'\u65e5\u672c')
|
||||
except UnicodeEncodeError:
|
||||
raise SkipTest(
|
||||
'multibyte console input did not support on this encoding: %s',
|
||||
'multibyte console input not supported on this encoding: %s',
|
||||
qs.TERM_ENCODING)
|
||||
assert d['k1'] == u'\u30c9\u30a4\u30c4'
|
||||
|
||||
|
@ -67,7 +67,7 @@ def test_build_sphinx_with_multibyte_path(pkgroot, proc):
|
||||
except UnicodeEncodeError:
|
||||
from path import FILESYSTEMENCODING
|
||||
raise SkipTest(
|
||||
'multibyte filename did not support on this filesystem encoding: '
|
||||
'multibyte filename not supported on this filesystem encoding: '
|
||||
'%s', FILESYSTEMENCODING)
|
||||
|
||||
(srcdir / mb_name / (mb_name + '.txt')).write_text(dedent("""
|
||||
|
Loading…
Reference in New Issue
Block a user