jayvdb added a comment.

  Option 2 is definitely not desirable.
  
  Option 1 doesnt really help much.  The standard `ImportError` is good enough 
for anyone who has built their own Python.
  
  Option 3 is the simple fix, but it should give a warning to the user when 
`bz2` is missing, and a helpful error message if `bz2` and `bz2file` are both 
missing.
  
  Option 4 is an additional approach at trying to avoid failing.
  
  Option 5 would be to store the state during module loading, and issue any 
warnings then, but delay raising any exception until the bz2 component is 
actually needed.

TASK DETAIL
  https://phabricator.wikimedia.org/T123092

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: jayvdb
Cc: AbdealiJK, valhallasw, Aklapper, StudiesWorld, jayvdb, pywikibot-bugs-list



_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to