Skip to content

Commit e32ea51

Browse files
jdufresnedaviddrysdale
authored andcommitted
Remove unused uchr() function (daviddrysdale#153)
1 parent 7adb0a5 commit e32ea51

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

python/phonenumbers/util.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,11 @@
88
- to_long() creates a (long) integer object from its input parameter.
99
- u() allows string literals involving non-ASCII characters to be
1010
used in both Python 2.x / 3.x, e.g. u("\u0101 is a-with-macron")
11-
- uchr() generates a single character Unicode string whose point code
12-
is the given (integer) argument, e.g. uchr(257).
1311
- unicod() forces its argument to a Unicode string.
1412
- rpr() generates a representation of a string that can be parsed in either
1513
Python 2.x or 3.x, assuming use of the u() function above.
1614
17-
>>> from .util import prnt, u, uchr, rpr
15+
>>> from .util import prnt, u, rpr
1816
>>> prnt("hello")
1917
hello
2018
>>> prnt("hello", "world")
@@ -23,8 +21,6 @@
2321
hello:world
2422
>>> prnt("hello", "world", sep=":", end='!\\n')
2523
hello:world!
26-
>>> u('\u0101') == uchr(0x0101)
27-
True
2824
>>> u('\u0101') == u('\U00000101')
2925
True
3026
>>> u('\u0101') == u('\N{LATIN SMALL LETTER A WITH MACRON}')
@@ -46,7 +42,6 @@
4642

4743
unicod = str
4844
u = str
49-
uchr = chr
5045
to_long = int
5146

5247
def prnt(*args, **kwargs):
@@ -84,7 +79,6 @@ def u(s):
8479
us = re.sub(_UNAME_RE, lambda m: unicodedata.lookup(m.group('name')), us)
8580
return us
8681

87-
uchr = unichr
8882
to_long = long
8983

9084
def prnt(*args, **kwargs):

0 commit comments

Comments
 (0)