소스 검색

Merge pull request #3 from Riamse/develop

Forgot to add compat.py (#1)
tags/v0.1
Ben Kurtovic 11 년 전
부모
커밋
ea28e991d9
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

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