소스 검색

sys.version_info: use indexing instead of names

Python <= 2.6 does not support the .major/.minor syntax
pull/56/head
Merlijn van Deen 10 년 전
부모
커밋
0956055f03
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


불러오는 중...
취소
저장