Show More
@@ -1,104 +1,108 b'' | |||
|
1 | 1 | # i18n.py - internationalization support for mercurial |
|
2 | 2 | # |
|
3 | 3 | # Copyright 2005, 2006 Matt Mackall <mpm@selenic.com> |
|
4 | 4 | # |
|
5 | 5 | # This software may be used and distributed according to the terms of the |
|
6 | 6 | # GNU General Public License version 2 or any later version. |
|
7 | 7 | |
|
8 | 8 | from __future__ import absolute_import |
|
9 | 9 | |
|
10 | 10 | import gettext as gettextmod |
|
11 | 11 | import locale |
|
12 | 12 | import os |
|
13 | 13 | import sys |
|
14 | 14 | |
|
15 |
from . import |
|
|
15 | from . import ( | |
|
16 | encoding, | |
|
17 | pycompat, | |
|
18 | ) | |
|
16 | 19 | |
|
17 | 20 | # modelled after templater.templatepath: |
|
18 | 21 | if getattr(sys, 'frozen', None) is not None: |
|
19 | 22 | module = sys.executable |
|
20 | 23 | else: |
|
21 | 24 | module = __file__ |
|
22 | 25 | |
|
23 | 26 | try: |
|
24 | 27 | unicode |
|
25 | 28 | except NameError: |
|
26 | 29 | unicode = str |
|
27 | 30 | |
|
28 | 31 | _languages = None |
|
29 | 32 | if (os.name == 'nt' |
|
30 | 33 | and 'LANGUAGE' not in encoding.environ |
|
31 | 34 | and 'LC_ALL' not in encoding.environ |
|
32 | 35 | and 'LC_MESSAGES' not in encoding.environ |
|
33 | 36 | and 'LANG' not in encoding.environ): |
|
34 | 37 | # Try to detect UI language by "User Interface Language Management" API |
|
35 | 38 | # if no locale variables are set. Note that locale.getdefaultlocale() |
|
36 | 39 | # uses GetLocaleInfo(), which may be different from UI language. |
|
37 | 40 | # (See http://msdn.microsoft.com/en-us/library/dd374098(v=VS.85).aspx ) |
|
38 | 41 | try: |
|
39 | 42 | import ctypes |
|
40 | 43 | langid = ctypes.windll.kernel32.GetUserDefaultUILanguage() |
|
41 | 44 | _languages = [locale.windows_locale[langid]] |
|
42 | 45 | except (ImportError, AttributeError, KeyError): |
|
43 | 46 | # ctypes not found or unknown langid |
|
44 | 47 | pass |
|
45 | 48 | |
|
46 | 49 | _ugettext = None |
|
47 | 50 | |
|
48 | 51 | def setdatapath(datapath): |
|
49 | 52 | localedir = os.path.join(datapath, 'locale') |
|
50 | 53 | t = gettextmod.translation('hg', localedir, _languages, fallback=True) |
|
51 | 54 | global _ugettext |
|
52 | 55 | try: |
|
53 | 56 | _ugettext = t.ugettext |
|
54 | 57 | except AttributeError: |
|
55 | 58 | _ugettext = t.gettext |
|
56 | 59 | |
|
57 | 60 | _msgcache = {} |
|
58 | 61 | |
|
59 | 62 | def gettext(message): |
|
60 | 63 | """Translate message. |
|
61 | 64 | |
|
62 | 65 | The message is looked up in the catalog to get a Unicode string, |
|
63 | 66 | which is encoded in the local encoding before being returned. |
|
64 | 67 | |
|
65 | 68 | Important: message is restricted to characters in the encoding |
|
66 | 69 | given by sys.getdefaultencoding() which is most likely 'ascii'. |
|
67 | 70 | """ |
|
68 | 71 | # If message is None, t.ugettext will return u'None' as the |
|
69 | 72 | # translation whereas our callers expect us to return None. |
|
70 | 73 | if message is None or not _ugettext: |
|
71 | 74 | return message |
|
72 | 75 | |
|
73 | 76 | if message not in _msgcache: |
|
74 | 77 | if type(message) is unicode: |
|
75 | 78 | # goofy unicode docstrings in test |
|
76 | 79 | paragraphs = message.split(u'\n\n') |
|
77 | 80 | else: |
|
78 | 81 | paragraphs = [p.decode("ascii") for p in message.split('\n\n')] |
|
79 | 82 | # Be careful not to translate the empty string -- it holds the |
|
80 | 83 | # meta data of the .po file. |
|
81 | 84 | u = u'\n\n'.join([p and _ugettext(p) or u'' for p in paragraphs]) |
|
82 | 85 | try: |
|
83 | 86 | # encoding.tolocal cannot be used since it will first try to |
|
84 | 87 | # decode the Unicode string. Calling u.decode(enc) really |
|
85 | 88 | # means u.encode(sys.getdefaultencoding()).decode(enc). Since |
|
86 | 89 | # the Python encoding defaults to 'ascii', this fails if the |
|
87 | 90 | # translated string use non-ASCII characters. |
|
88 | _msgcache[message] = u.encode(encoding.encoding, "replace") | |
|
91 | encodingstr = pycompat.sysstr(encoding.encoding) | |
|
92 | _msgcache[message] = u.encode(encodingstr, "replace") | |
|
89 | 93 | except LookupError: |
|
90 | 94 | # An unknown encoding results in a LookupError. |
|
91 | 95 | _msgcache[message] = message |
|
92 | 96 | return _msgcache[message] |
|
93 | 97 | |
|
94 | 98 | def _plain(): |
|
95 | 99 | if ('HGPLAIN' not in encoding.environ |
|
96 | 100 | and 'HGPLAINEXCEPT' not in encoding.environ): |
|
97 | 101 | return False |
|
98 | 102 | exceptions = encoding.environ.get('HGPLAINEXCEPT', '').strip().split(',') |
|
99 | 103 | return 'i18n' not in exceptions |
|
100 | 104 | |
|
101 | 105 | if _plain(): |
|
102 | 106 | _ = lambda message: message |
|
103 | 107 | else: |
|
104 | 108 | _ = gettext |
@@ -1,178 +1,178 b'' | |||
|
1 | 1 | #require test-repo |
|
2 | 2 | |
|
3 | 3 | $ . "$TESTDIR/helpers-testrepo.sh" |
|
4 | 4 | $ cd "$TESTDIR"/.. |
|
5 | 5 | |
|
6 | 6 | $ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs python contrib/check-py3-compat.py |
|
7 | 7 | hgext/fsmonitor/pywatchman/__init__.py not using absolute_import |
|
8 | 8 | hgext/fsmonitor/pywatchman/__init__.py requires print_function |
|
9 | 9 | hgext/fsmonitor/pywatchman/capabilities.py not using absolute_import |
|
10 | 10 | hgext/fsmonitor/pywatchman/pybser.py not using absolute_import |
|
11 | 11 | i18n/check-translation.py not using absolute_import |
|
12 | 12 | setup.py not using absolute_import |
|
13 | 13 | tests/test-demandimport.py not using absolute_import |
|
14 | 14 | |
|
15 | 15 | #if py3exe |
|
16 | 16 | $ hg files 'set:(**.py) - grep(pygments)' | sed 's|\\|/|g' \ |
|
17 | 17 | > | xargs $PYTHON3 contrib/check-py3-compat.py \ |
|
18 | 18 | > | sed 's/[0-9][0-9]*)$/*)/' |
|
19 | 19 | doc/hgmanpage.py: invalid syntax: invalid syntax (<unknown>, line *) |
|
20 | 20 | hgext/acl.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
21 | 21 | hgext/automv.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
22 | 22 | hgext/blackbox.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
23 | 23 | hgext/bugzilla.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
24 | 24 | hgext/censor.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
25 | 25 | hgext/chgserver.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
26 | 26 | hgext/children.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
27 | 27 | hgext/churn.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
28 | 28 | hgext/clonebundles.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
29 | 29 | hgext/color.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
30 | 30 | hgext/convert/bzr.py: error importing module: <SystemError> Parent module 'hgext.convert' not loaded, cannot perform relative import (line *) |
|
31 | 31 | hgext/convert/common.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
32 | 32 | hgext/convert/convcmd.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
33 | 33 | hgext/convert/cvs.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
34 | 34 | hgext/convert/cvsps.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
35 | 35 | hgext/convert/darcs.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
36 | 36 | hgext/convert/filemap.py: error importing module: <SystemError> Parent module 'hgext.convert' not loaded, cannot perform relative import (line *) |
|
37 | 37 | hgext/convert/git.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
38 | 38 | hgext/convert/gnuarch.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
39 | 39 | hgext/convert/hg.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
40 | 40 | hgext/convert/monotone.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
41 | 41 | hgext/convert/p4.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
42 | 42 | hgext/convert/subversion.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
43 | 43 | hgext/convert/transport.py: error importing module: <ImportError> No module named 'svn.client' (line *) |
|
44 | 44 | hgext/eol.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
45 | 45 | hgext/extdiff.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
46 | 46 | hgext/factotum.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
47 | 47 | hgext/fetch.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
48 | 48 | hgext/fsmonitor/state.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
49 | 49 | hgext/fsmonitor/watchmanclient.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
50 | 50 | hgext/gpg.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
51 | 51 | hgext/graphlog.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
52 | 52 | hgext/hgk.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
53 | 53 | hgext/histedit.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
54 | 54 | hgext/journal.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
55 | 55 | hgext/keyword.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
56 | 56 | hgext/largefiles/basestore.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
57 | 57 | hgext/largefiles/lfcommands.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
58 | 58 | hgext/largefiles/lfutil.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
59 | 59 | hgext/largefiles/localstore.py: error importing module: <SystemError> Parent module 'hgext.largefiles' not loaded, cannot perform relative import (line *) |
|
60 | 60 | hgext/largefiles/overrides.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
61 | 61 | hgext/largefiles/proto.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
62 | 62 | hgext/largefiles/remotestore.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
63 | 63 | hgext/largefiles/reposetup.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
64 | 64 | hgext/largefiles/storefactory.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
65 | 65 | hgext/largefiles/uisetup.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
66 | 66 | hgext/largefiles/wirestore.py: error importing module: <SystemError> Parent module 'hgext.largefiles' not loaded, cannot perform relative import (line *) |
|
67 | 67 | hgext/mq.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
68 | 68 | hgext/notify.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
69 | 69 | hgext/pager.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
70 | 70 | hgext/patchbomb.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
71 | 71 | hgext/purge.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
72 | 72 | hgext/rebase.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
73 | 73 | hgext/record.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
74 | 74 | hgext/relink.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
75 | 75 | hgext/schemes.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
76 | 76 | hgext/share.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
77 | 77 | hgext/shelve.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
78 | 78 | hgext/strip.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
79 | 79 | hgext/transplant.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
80 | 80 | hgext/win32text.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
81 | 81 | mercurial/archival.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
82 | 82 | mercurial/bookmarks.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
83 | 83 | mercurial/branchmap.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
84 | 84 | mercurial/bundle2.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
85 | 85 | mercurial/bundlerepo.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
86 | 86 | mercurial/byterange.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
87 | 87 | mercurial/changegroup.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
88 | 88 | mercurial/changelog.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
89 | 89 | mercurial/cmdutil.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
90 | 90 | mercurial/commands.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
91 | 91 | mercurial/commandserver.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
92 | 92 | mercurial/config.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
93 | 93 | mercurial/context.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
94 | 94 | mercurial/copies.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
95 | 95 | mercurial/crecord.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
96 | 96 | mercurial/destutil.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
97 | 97 | mercurial/dirstate.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
98 | 98 | mercurial/discovery.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
99 | 99 | mercurial/dispatch.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
100 | 100 | mercurial/encoding.py: error importing module: <TypeError> bytes expected, not str (line *) |
|
101 | 101 | mercurial/exchange.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
102 | 102 | mercurial/extensions.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
103 | 103 | mercurial/filelog.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
104 | 104 | mercurial/filemerge.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
105 | 105 | mercurial/fileset.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
106 | 106 | mercurial/formatter.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
107 | 107 | mercurial/graphmod.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
108 | 108 | mercurial/help.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
109 | 109 | mercurial/hg.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
110 | 110 | mercurial/hgweb/common.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *) |
|
111 | 111 | mercurial/hgweb/hgweb_mod.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *) |
|
112 | 112 | mercurial/hgweb/hgwebdir_mod.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *) |
|
113 | 113 | mercurial/hgweb/protocol.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *) |
|
114 | 114 | mercurial/hgweb/request.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *) |
|
115 | 115 | mercurial/hgweb/server.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *) |
|
116 | 116 | mercurial/hgweb/webcommands.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *) |
|
117 | 117 | mercurial/hgweb/webutil.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *) |
|
118 | 118 | mercurial/hgweb/wsgicgi.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *) |
|
119 | 119 | mercurial/hook.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
120 | 120 | mercurial/httpconnection.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
121 | 121 | mercurial/httppeer.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
122 | 122 | mercurial/i18n.py: error importing module: <TypeError> bytes expected, not str (line *) |
|
123 |
mercurial/keepalive.py: error importing: <TypeError> encode() argument |
|
|
124 |
mercurial/localrepo.py: error importing: <TypeError> encode() argument |
|
|
125 |
mercurial/lock.py: error importing: <TypeError> encode() argument |
|
|
126 |
mercurial/mail.py: error importing: <TypeError> encode() argument |
|
|
127 |
mercurial/manifest.py: error importing: <TypeError> encode() argument |
|
|
128 |
mercurial/match.py: error importing: <TypeError> encode() argument |
|
|
129 |
mercurial/mdiff.py: error importing: <TypeError> encode() argument |
|
|
130 |
mercurial/merge.py: error importing: <TypeError> encode() argument |
|
|
131 |
mercurial/minirst.py: error importing: <TypeError> encode() argument |
|
|
132 |
mercurial/namespaces.py: error importing: <TypeError> encode() argument |
|
|
133 |
mercurial/obsolete.py: error importing: <TypeError> encode() argument |
|
|
134 |
mercurial/patch.py: error importing: <TypeError> encode() argument |
|
|
135 |
mercurial/pathutil.py: error importing: <TypeError> encode() argument |
|
|
136 |
mercurial/peer.py: error importing: <TypeError> encode() argument |
|
|
137 |
mercurial/profiling.py: error importing: <TypeError> encode() argument |
|
|
138 |
mercurial/pushkey.py: error importing: <TypeError> encode() argument |
|
|
139 |
mercurial/pvec.py: error importing: <TypeError> encode() argument |
|
|
140 |
mercurial/registrar.py: error importing: <TypeError> encode() argument |
|
|
141 |
mercurial/repair.py: error importing: <TypeError> encode() argument |
|
|
142 |
mercurial/repoview.py: error importing: <TypeError> encode() argument |
|
|
143 |
mercurial/revlog.py: error importing: <TypeError> encode() argument |
|
|
144 |
mercurial/revset.py: error importing: <TypeError> encode() argument |
|
|
145 |
mercurial/scmutil.py: error importing: <TypeError> encode() argument |
|
|
146 |
mercurial/scmwindows.py: error importing: <TypeError> encode() argument |
|
|
147 |
mercurial/similar.py: error importing: <TypeError> encode() argument |
|
|
148 |
mercurial/simplemerge.py: error importing: <TypeError> encode() argument |
|
|
149 |
mercurial/sshpeer.py: error importing: <TypeError> encode() argument |
|
|
150 |
mercurial/sshserver.py: error importing: <TypeError> encode() argument |
|
|
151 |
mercurial/sslutil.py: error importing: <TypeError> encode() argument |
|
|
152 |
mercurial/statichttprepo.py: error importing: <TypeError> encode() argument |
|
|
153 |
mercurial/store.py: error importing: <TypeError> encode() argument |
|
|
154 |
mercurial/streamclone.py: error importing: <TypeError> encode() argument |
|
|
155 |
mercurial/subrepo.py: error importing: <TypeError> encode() argument |
|
|
156 |
mercurial/tagmerge.py: error importing: <TypeError> encode() argument |
|
|
157 |
mercurial/tags.py: error importing: <TypeError> encode() argument |
|
|
158 |
mercurial/templatefilters.py: error importing: <TypeError> encode() argument |
|
|
159 |
mercurial/templatekw.py: error importing: <TypeError> encode() argument |
|
|
160 |
mercurial/templater.py: error importing: <TypeError> encode() argument |
|
|
161 |
mercurial/transaction.py: error importing: <TypeError> encode() argument |
|
|
162 |
mercurial/ui.py: error importing: <TypeError> encode() argument |
|
|
163 |
mercurial/unionrepo.py: error importing: <TypeError> encode() argument |
|
|
164 |
mercurial/url.py: error importing: <TypeError> encode() argument |
|
|
165 |
mercurial/util.py: error importing: <TypeError> encode() argument |
|
|
166 |
mercurial/verify.py: error importing: <TypeError> encode() argument |
|
|
123 | mercurial/keepalive.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
124 | mercurial/localrepo.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
125 | mercurial/lock.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
126 | mercurial/mail.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
127 | mercurial/manifest.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
128 | mercurial/match.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
129 | mercurial/mdiff.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
130 | mercurial/merge.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
131 | mercurial/minirst.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
132 | mercurial/namespaces.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
133 | mercurial/obsolete.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
134 | mercurial/patch.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
135 | mercurial/pathutil.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
136 | mercurial/peer.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
137 | mercurial/profiling.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
138 | mercurial/pushkey.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
139 | mercurial/pvec.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
140 | mercurial/registrar.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
141 | mercurial/repair.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
142 | mercurial/repoview.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
143 | mercurial/revlog.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
144 | mercurial/revset.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
145 | mercurial/scmutil.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
146 | mercurial/scmwindows.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
147 | mercurial/similar.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
148 | mercurial/simplemerge.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
149 | mercurial/sshpeer.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
150 | mercurial/sshserver.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
151 | mercurial/sslutil.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
152 | mercurial/statichttprepo.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
153 | mercurial/store.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
154 | mercurial/streamclone.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
155 | mercurial/subrepo.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
156 | mercurial/tagmerge.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
157 | mercurial/tags.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
158 | mercurial/templatefilters.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
159 | mercurial/templatekw.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
160 | mercurial/templater.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
161 | mercurial/transaction.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
162 | mercurial/ui.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
163 | mercurial/unionrepo.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
164 | mercurial/url.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
165 | mercurial/util.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
166 | mercurial/verify.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
167 | 167 | mercurial/win32.py: error importing module: <ImportError> No module named 'msvcrt' (line *) |
|
168 | 168 | mercurial/windows.py: error importing module: <ImportError> No module named 'msvcrt' (line *) |
|
169 |
mercurial/wireproto.py: error importing: <TypeError> encode() argument |
|
|
169 | mercurial/wireproto.py: error importing: <TypeError> encode() argument 2 must be str, not bytes (error at i18n.py:*) | |
|
170 | 170 | |
|
171 | 171 | #endif |
|
172 | 172 | |
|
173 | 173 | #if py3exe py3pygments |
|
174 | 174 | $ hg files 'set:(**.py) and grep(pygments)' | sed 's|\\|/|g' \ |
|
175 | 175 | > | xargs $PYTHON3 contrib/check-py3-compat.py \ |
|
176 | 176 | > | sed 's/[0-9][0-9]*)$/*)/' |
|
177 | 177 | hgext/highlight/highlight.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*) |
|
178 | 178 | #endif |
General Comments 0
You need to be logged in to leave comments.
Login now