本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
說明
登入
ben
/
mwparserfromhell
镜像来自
https://github.com/earwig/mwparserfromhell
關注
1
收藏
1
複製
0
程式碼
版本發佈
24
活動
瀏覽代碼
sys.version_info: use indexing instead of names
Python <= 2.6 does not support the .major/.minor syntax
pull/56/head
Merlijn van Deen
11 年之前
父節點
1607687c37
當前提交
0956055f03
共有
1 個檔案被更改
,包括
2 行新增
和
2 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
Write
Preview
Loading…
取消
儲存