##// END OF EJS Templates
py3: make i18n use encoding.environ
Yuya Nishihara -
r30035:02328b5d default
parent child Browse files
Show More
@@ -27,10 +27,10 b' except NameError:'
27 27
28 28 _languages = None
29 29 if (os.name == 'nt'
30 and 'LANGUAGE' not in os.environ
31 and 'LC_ALL' not in os.environ
32 and 'LC_MESSAGES' not in os.environ
33 and 'LANG' not in os.environ):
30 and 'LANGUAGE' not in encoding.environ
31 and 'LC_ALL' not in encoding.environ
32 and 'LC_MESSAGES' not in encoding.environ
33 and 'LANG' not in encoding.environ):
34 34 # Try to detect UI language by "User Interface Language Management" API
35 35 # if no locale variables are set. Note that locale.getdefaultlocale()
36 36 # uses GetLocaleInfo(), which may be different from UI language.
@@ -92,9 +92,10 b' def gettext(message):'
92 92 return _msgcache[message]
93 93
94 94 def _plain():
95 if 'HGPLAIN' not in os.environ and 'HGPLAINEXCEPT' not in os.environ:
95 if ('HGPLAIN' not in encoding.environ
96 and 'HGPLAINEXCEPT' not in encoding.environ):
96 97 return False
97 exceptions = os.environ.get('HGPLAINEXCEPT', '').strip().split(',')
98 exceptions = encoding.environ.get('HGPLAINEXCEPT', '').strip().split(',')
98 99 return 'i18n' not in exceptions
99 100
100 101 if _plain():
@@ -17,101 +17,96 b''
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 hgext/acl.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
21 hgext/automv.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
22 hgext/blackbox.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
23 hgext/bugzilla.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
24 hgext/censor.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
25 hgext/chgserver.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
26 hgext/children.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
27 hgext/churn.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
28 hgext/clonebundles.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
29 hgext/color.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
30 hgext/convert/bzr.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
31 hgext/convert/common.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
32 hgext/convert/convcmd.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
33 hgext/convert/cvs.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
34 hgext/convert/cvsps.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
35 hgext/convert/darcs.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
36 hgext/convert/filemap.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
37 hgext/convert/git.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
38 hgext/convert/gnuarch.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
39 hgext/convert/hg.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
40 hgext/convert/monotone.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
41 hgext/convert/p4.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
42 hgext/convert/subversion.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
20 hgext/acl.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
21 hgext/automv.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
22 hgext/blackbox.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
23 hgext/bugzilla.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
24 hgext/censor.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
25 hgext/chgserver.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
26 hgext/children.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
27 hgext/churn.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
28 hgext/clonebundles.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
29 hgext/color.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
30 hgext/convert/bzr.py: error importing module: <SystemError> Parent module 'hgext.convert' not loaded, cannot perform relative import (line *)
31 hgext/convert/common.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
32 hgext/convert/convcmd.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
33 hgext/convert/cvs.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
34 hgext/convert/cvsps.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
35 hgext/convert/darcs.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
36 hgext/convert/filemap.py: error importing module: <SystemError> Parent module 'hgext.convert' not loaded, cannot perform relative import (line *)
37 hgext/convert/git.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
38 hgext/convert/gnuarch.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
39 hgext/convert/hg.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
40 hgext/convert/monotone.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
41 hgext/convert/p4.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
42 hgext/convert/subversion.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
43 43 hgext/convert/transport.py: error importing module: <ImportError> No module named 'svn.client' (line *)
44 hgext/eol.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
45 hgext/extdiff.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
46 hgext/factotum.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
47 hgext/fetch.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
48 hgext/fsmonitor/state.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
49 hgext/fsmonitor/watchmanclient.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
50 hgext/gpg.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
51 hgext/graphlog.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
52 hgext/hgk.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
53 hgext/histedit.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
54 hgext/journal.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
55 hgext/keyword.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
56 hgext/largefiles/basestore.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
57 hgext/largefiles/lfcommands.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
58 hgext/largefiles/lfutil.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
59 hgext/largefiles/localstore.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
60 hgext/largefiles/overrides.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
61 hgext/largefiles/proto.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
62 hgext/largefiles/remotestore.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
63 hgext/largefiles/reposetup.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
64 hgext/largefiles/storefactory.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
65 hgext/largefiles/uisetup.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
44 hgext/eol.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
45 hgext/extdiff.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
46 hgext/factotum.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
47 hgext/fetch.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
48 hgext/fsmonitor/state.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
49 hgext/fsmonitor/watchmanclient.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
50 hgext/gpg.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
51 hgext/graphlog.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
52 hgext/hgk.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
53 hgext/histedit.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
54 hgext/journal.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
55 hgext/keyword.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
56 hgext/largefiles/basestore.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
57 hgext/largefiles/lfcommands.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
58 hgext/largefiles/lfutil.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
59 hgext/largefiles/localstore.py: error importing module: <SystemError> Parent module 'hgext.largefiles' not loaded, cannot perform relative import (line *)
60 hgext/largefiles/overrides.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
61 hgext/largefiles/proto.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
62 hgext/largefiles/remotestore.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
63 hgext/largefiles/reposetup.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
64 hgext/largefiles/storefactory.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
65 hgext/largefiles/uisetup.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
66 66 hgext/largefiles/wirestore.py: error importing module: <SystemError> Parent module 'hgext.largefiles' not loaded, cannot perform relative import (line *)
67 hgext/mq.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
68 hgext/notify.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
69 hgext/pager.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
70 hgext/patchbomb.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
71 hgext/purge.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
72 hgext/rebase.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
73 hgext/record.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
74 hgext/relink.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
75 hgext/schemes.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
76 hgext/share.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
77 hgext/shelve.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
78 hgext/strip.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
79 hgext/transplant.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
80 hgext/win32mbcs.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
81 hgext/win32text.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
82 mercurial/archival.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
83 mercurial/bookmarks.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
84 mercurial/branchmap.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
85 mercurial/bundle2.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
86 mercurial/bundlerepo.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
87 mercurial/byterange.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
88 mercurial/changegroup.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
89 mercurial/changelog.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
90 mercurial/cmdutil.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
91 mercurial/commands.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
92 mercurial/commandserver.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
93 mercurial/config.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
94 mercurial/context.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
95 mercurial/copies.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
96 mercurial/crecord.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
97 mercurial/dagparser.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
98 mercurial/dagutil.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
99 mercurial/destutil.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
100 mercurial/dirstate.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
101 mercurial/discovery.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
102 mercurial/dispatch.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
67 hgext/mq.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
68 hgext/notify.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
69 hgext/pager.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
70 hgext/patchbomb.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
71 hgext/purge.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
72 hgext/rebase.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
73 hgext/record.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
74 hgext/relink.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
75 hgext/schemes.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
76 hgext/share.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
77 hgext/shelve.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
78 hgext/strip.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
79 hgext/transplant.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
80 hgext/win32text.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
81 mercurial/archival.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
82 mercurial/bookmarks.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
83 mercurial/branchmap.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
84 mercurial/bundle2.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
85 mercurial/bundlerepo.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
86 mercurial/byterange.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
87 mercurial/changegroup.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
88 mercurial/changelog.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
89 mercurial/cmdutil.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
90 mercurial/commands.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
91 mercurial/commandserver.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
92 mercurial/config.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
93 mercurial/context.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
94 mercurial/copies.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
95 mercurial/crecord.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
96 mercurial/destutil.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
97 mercurial/dirstate.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
98 mercurial/discovery.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
99 mercurial/dispatch.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
103 100 mercurial/encoding.py: error importing module: <TypeError> bytes expected, not str (line *)
104 mercurial/exchange.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
105 mercurial/extensions.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
106 mercurial/fancyopts.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
107 mercurial/filelog.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
108 mercurial/filemerge.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
109 mercurial/fileset.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
110 mercurial/formatter.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
111 mercurial/graphmod.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
112 mercurial/hbisect.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
113 mercurial/help.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
114 mercurial/hg.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
101 mercurial/exchange.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
102 mercurial/extensions.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
103 mercurial/filelog.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
104 mercurial/filemerge.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
105 mercurial/fileset.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
106 mercurial/formatter.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
107 mercurial/graphmod.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
108 mercurial/help.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
109 mercurial/hg.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
115 110 mercurial/hgweb/common.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *)
116 111 mercurial/hgweb/hgweb_mod.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *)
117 112 mercurial/hgweb/hgwebdir_mod.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *)
@@ -121,9 +116,10 b''
121 116 mercurial/hgweb/webcommands.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *)
122 117 mercurial/hgweb/webutil.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *)
123 118 mercurial/hgweb/wsgicgi.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *)
124 mercurial/hook.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
125 mercurial/httpconnection.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
126 mercurial/httppeer.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
119 mercurial/hook.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
120 mercurial/httpconnection.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
121 mercurial/httppeer.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
122 mercurial/i18n.py: error importing module: <TypeError> bytes expected, not str (line *)
127 123 mercurial/keepalive.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
128 124 mercurial/localrepo.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
129 125 mercurial/lock.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
@@ -166,7 +162,7 b''
166 162 mercurial/ui.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
167 163 mercurial/unionrepo.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
168 164 mercurial/url.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
169 mercurial/util.py: error importing module: <TypeError> encode() argument 1 must be str, not bytes (line *)
165 mercurial/util.py: error importing: <TypeError> encode() argument 1 must be str, not bytes (error at i18n.py:*)
170 166 mercurial/verify.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
171 167 mercurial/win32.py: error importing module: <ImportError> No module named 'msvcrt' (line *)
172 168 mercurial/windows.py: error importing module: <ImportError> No module named 'msvcrt' (line *)
@@ -178,5 +174,5 b''
178 174 $ hg files 'set:(**.py) and grep(pygments)' | sed 's|\\|/|g' \
179 175 > | xargs $PYTHON3 contrib/check-py3-compat.py \
180 176 > | sed 's/[0-9][0-9]*)$/*)/'
181 hgext/highlight/highlight.py: error importing: <TypeError> str expected, not bytes (error at i18n.py:*)
177 hgext/highlight/highlight.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at util.py:*)
182 178 #endif
General Comments 0
You need to be logged in to leave comments. Login now