Pārlūkot izejas kodu

Merge pull request #3 from Riamse/develop

Forgot to add compat.py (#1)
tags/v0.1
Ben Kurtovic pirms 11 gadiem
vecāks
revīzija
ea28e991d9
1 mainītis faili ar 16 papildinājumiem un 0 dzēšanām
  1. +16
    -0
      mwparserfromhell/compat.py

+ 16
- 0
mwparserfromhell/compat.py Parādīt failu

@@ -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

Notiek ielāde…
Atcelt
Saglabāt