Browse Source

Merge c4fd7b7468 into dea1612d77

pull/3/merge
Riamse 12 years ago
parent
commit
01b9769095
1 changed files with 16 additions and 0 deletions
  1. +16
    -0
      mwparserfromhell/compat.py

+ 16
- 0
mwparserfromhell/compat.py View File

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

Loading…
Cancel
Save