Riamse hace 11 años
padre
commit
01b9769095
Se han modificado 1 ficheros con 16 adiciones y 0 borrados
  1. +16
    -0
      mwparserfromhell/compat.py

+ 16
- 0
mwparserfromhell/compat.py Ver fichero

@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
import sys
v = sys.version_info[0]
if v >= 3:
bytes = bytes
str = str
basestring = (str, bytes)
import html.entities as htmlentitydefs
else:
bytes = str
str = unicode
basestring = basestring
import htmlentitydefs

Cargando…
Cancelar
Guardar