mercurial/extensions.py
changeset 38727 fcb517ff9562
parent 38344 c6f82a18a63d
child 38798 d58958676b3c
equal deleted inserted replaced
38726:d79f3afb079e 38727:fcb517ff9562
   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)