Commits

Yuya Nishihara committed 0034da5

thgconfig: fix extensions pane to work with iniparse 0.4

  • Participants
  • Parent commits 8b8a7e0
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgtk/thgconfig.py

                 return None
             for cand in (name, 'hgext.%s' % name, 'hgext/%s' % name):
                 try:
-                    return self.ini['extensions'][cand]
+                    v = self.ini['extensions'][cand]
+                    if not isinstance(v, Undefined):
+                        return v
                 except KeyError:
                     pass