We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7bcaf4c commit d9a4f3eCopy full SHA for d9a4f3e
bpython/_py3compat.py
@@ -43,15 +43,3 @@
43
from pygments.lexers import Python3Lexer as PythonLexer
44
else:
45
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
0 commit comments