A Python parser for MediaWiki wikicode https://mwparserfromhell.readthedocs.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

16 lines
286 B

  1. # -*- coding: utf-8 -*-
  2. import sys
  3. v = sys.version_info[0]
  4. if v >= 3:
  5. bytes = bytes
  6. str = str
  7. basestring = (str, bytes)
  8. import html.entities as htmlentitydefs
  9. else:
  10. bytes = str
  11. str = unicode
  12. basestring = basestring
  13. import htmlentitydefs