File tree Expand file tree Collapse file tree 3 files changed +5
-64
lines changed Expand file tree Collapse file tree 3 files changed +5
-64
lines changed Original file line number Diff line number Diff line change 33
33
# [meta-key] is identified with [esc key]. We demand that any console
34
34
# class does quite a lot towards emulating a unix terminal.
35
35
from __future__ import print_function
36
- from pyrepl import unicodedata_
36
+ import unicodedata
37
37
from collections import deque
38
38
39
39
@@ -79,7 +79,7 @@ def push(self, evt):
79
79
if d is None :
80
80
if self .verbose :
81
81
print ("invalid" )
82
- if self .stack or len (key ) > 1 or unicodedata_ .category (key ) == 'C' :
82
+ if self .stack or len (key ) > 1 or unicodedata .category (key ) == 'C' :
83
83
self .results .append (
84
84
(self .invalid_cls , self .stack + [key ]))
85
85
else :
Original file line number Diff line number Diff line change 20
20
# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
21
21
22
22
from __future__ import unicode_literals
23
- from pyrepl import unicodedata_
23
+ import unicodedata
24
24
from pyrepl import commands
25
25
from pyrepl import input
26
26
try :
33
33
def _make_unctrl_map ():
34
34
uc_map = {}
35
35
for c in map (unichr , range (256 )):
36
- if unicodedata_ .category (c )[0 ] != 'C' :
36
+ if unicodedata .category (c )[0 ] != 'C' :
37
37
uc_map [c ] = c
38
38
for i in range (32 ):
39
39
c = unichr (i )
@@ -61,7 +61,7 @@ def _my_unctrl(c, u=_make_unctrl_map()):
61
61
if c in u :
62
62
return u [c ]
63
63
else :
64
- if unicodedata_ .category (c ).startswith ('C' ):
64
+ if unicodedata .category (c ).startswith ('C' ):
65
65
return b'\u%04x' % (ord (c ))
66
66
else :
67
67
return c
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments