equal
deleted
inserted
replaced
121 return mod |
121 return mod |
122 |
122 |
123 def _reportimporterror(ui, err, failed, next): |
123 def _reportimporterror(ui, err, failed, next): |
124 # note: this ui.debug happens before --debug is processed, |
124 # note: this ui.debug happens before --debug is processed, |
125 # Use --config ui.debug=1 to see them. |
125 # Use --config ui.debug=1 to see them. |
126 ui.debug('could not import %s (%s): trying %s\n' |
126 if ui.configbool('devel', 'debug.extensions'): |
127 % (failed, stringutil.forcebytestr(err), next)) |
127 ui.debug('could not import %s (%s): trying %s\n' |
128 if ui.debugflag: |
128 % (failed, stringutil.forcebytestr(err), next)) |
129 ui.traceback() |
129 if ui.debugflag: |
|
130 ui.traceback() |
130 |
131 |
131 def _rejectunicode(name, xs): |
132 def _rejectunicode(name, xs): |
132 if isinstance(xs, (list, set, tuple)): |
133 if isinstance(xs, (list, set, tuple)): |
133 for x in xs: |
134 for x in xs: |
134 _rejectunicode(name, x) |
135 _rejectunicode(name, x) |