from mercurial import mail
from urllib2 import AbstractBasicAuthHandler, AbstractDigestAuthHandler
-# mercurial.demandimport incompatibility workaround, various keyring
-# backends fail due to it. This should not be necessary once next
-# workaround is present, but to be safe I preserve this setting.
+# mercurial.demandimport incompatibility workaround.
+# various keyring backends fail as they can't properly import helper
+# modules (as demandimport modifies python import behaviour).
+# If you get import errors with demandimport in backtrace, try
+# guessing what to block and extending the list below.
from mercurial import demandimport
# Temporarily disable demandimport to make the need of extending
# list above less likely.
+ list above less likely.
if __import__ == demandimport._import: