Skip to content

Commit d9a4f3e

Browse files
committed
Remove unused functions
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
1 parent 7bcaf4c commit d9a4f3e

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

bpython/_py3compat.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,3 @@
4343
from pygments.lexers import Python3Lexer as PythonLexer
4444
else:
4545
from pygments.lexers import PythonLexer
46-
47-
48-
def cast_unicode(s, encoding=locale.getpreferredencoding()):
49-
if isinstance(s, bytes):
50-
return s.decode(encoding)
51-
return s
52-
53-
54-
def cast_bytes(s, encoding=locale.getpreferredencoding()):
55-
if not isinstance(s, bytes):
56-
return s.encode(encoding)
57-
return s

0 commit comments

Comments
 (0)