mirror of
https://github.com/powerline/powerline.git
synced 2025-07-23 05:46:01 +02:00
Add missing import
This commit is contained in:
parent
24d662c823
commit
1ef1ad7cfe
@ -4,6 +4,11 @@ __all__ = ['Mark', 'MarkedError', 'echoerr', 'NON_PRINTABLE']
|
|||||||
import sys
|
import sys
|
||||||
import re
|
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)) + ']')
|
NON_PRINTABLE = re.compile('[^\t\n\x20-\x7E' + unichr(0x85) + (unichr(0xA0) + '-' + unichr(0xD7FF)) + (unichr(0xE000) + '-' + unichr(0xFFFD)) + ']')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user