Skip to content

Commit 640d111

Browse files
kill pyrepl.unicodedata_ for the stdlib one
1 parent 9d13c5b commit 640d111

File tree

3 files changed

+5
-64
lines changed

3 files changed

+5
-64
lines changed

pyrepl/input.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
# [meta-key] is identified with [esc key]. We demand that any console
3434
# class does quite a lot towards emulating a unix terminal.
3535
from __future__ import print_function
36-
from pyrepl import unicodedata_
36+
import unicodedata
3737
from collections import deque
3838

3939

@@ -79,7 +79,7 @@ def push(self, evt):
7979
if d is None:
8080
if self.verbose:
8181
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':
8383
self.results.append(
8484
(self.invalid_cls, self.stack + [key]))
8585
else:

pyrepl/reader.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2121

2222
from __future__ import unicode_literals
23-
from pyrepl import unicodedata_
23+
import unicodedata
2424
from pyrepl import commands
2525
from pyrepl import input
2626
try:
@@ -33,7 +33,7 @@
3333
def _make_unctrl_map():
3434
uc_map = {}
3535
for c in map(unichr, range(256)):
36-
if unicodedata_.category(c)[0] != 'C':
36+
if unicodedata.category(c)[0] != 'C':
3737
uc_map[c] = c
3838
for i in range(32):
3939
c = unichr(i)
@@ -61,7 +61,7 @@ def _my_unctrl(c, u=_make_unctrl_map()):
6161
if c in u:
6262
return u[c]
6363
else:
64-
if unicodedata_.category(c).startswith('C'):
64+
if unicodedata.category(c).startswith('C'):
6565
return b'\u%04x'%(ord(c))
6666
else:
6767
return c

pyrepl/unicodedata_.py

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)