瀏覽代碼

Merge c4fd7b7468 into dea1612d77

pull/3/merge
Riamse 11 年之前
父節點
當前提交
01b9769095
共有 1 個檔案被更改,包括 16 行新增0 行删除
  1. +16
    -0
      mwparserfromhell/compat.py

+ 16
- 0
mwparserfromhell/compat.py 查看文件

@@ -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…
取消
儲存