浏览代码

Don't assume it's a named tuple to support Python 2.6.

tags/v0.3.3
Marcio Faustino 10 年前
父节点
当前提交
3d1329aa3a
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      mwparserfromhell/compat.py

+ 2
- 2
mwparserfromhell/compat.py 查看文件

@@ -10,8 +10,8 @@ types are meant to be imported directly from within the parser's modules.

import sys

py3k = sys.version_info.major == 3
py32 = py3k and sys.version_info.minor == 2
py3k = (sys.version_info[0] == 3)
py32 = py3k and (sys.version_info[1] == 2)

if py3k:
bytes = bytes


正在加载...
取消
保存