A Python parser for MediaWiki wikicode https://mwparserfromhell.readthedocs.io/
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

16 linhas
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