This website works better with JavaScript.
Home
Help
Sign In
ben
/
mwparserfromhell
mirror of
https://github.com/earwig/mwparserfromhell
Watch
1
Star
1
Fork
0
Code
Releases
24
Activity
Browse Source
Merge pull request
#3
from Riamse/develop
Forgot to add compat.py (
#1
)
tags/v0.1
Ben Kurtovic
12 years ago
parent
dea1612d77
c4fd7b7468
commit
ea28e991d9
1 changed files
with
16 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
Write
Preview
Loading…
Cancel
Save