Add missing import

This commit is contained in:
ZyX 2013-03-11 08:52:23 +04:00
parent 24d662c823
commit 1ef1ad7cfe
1 changed files with 5 additions and 0 deletions

View File

@ -4,6 +4,11 @@ __all__ = ['Mark', 'MarkedError', 'echoerr', 'NON_PRINTABLE']
import sys
import re
try:
from __builtin__ import unichr
except ImportError:
unichr = chr # NOQA
NON_PRINTABLE = re.compile('[^\t\n\x20-\x7E' + unichr(0x85) + (unichr(0xA0) + '-' + unichr(0xD7FF)) + (unichr(0xE000) + '-' + unichr(0xFFFD)) + ']')