mirror of
https://github.com/rembo10/headphones.git
synced 2026-07-20 16:03:59 +01:00
Initial python3 changes
Mostly just updating libraries, removing string encoding/decoding, fixing some edge cases. No new functionality was added in this commit.
This commit is contained in:
@@ -40,13 +40,13 @@ from pytz.tzfile import build_tzinfo, _byte_string
|
||||
|
||||
|
||||
try:
|
||||
unicode
|
||||
str
|
||||
|
||||
except NameError: # Python 3.x
|
||||
|
||||
# Python 3.x doesn't have unicode(), making writing code
|
||||
# for Python 2.3 and Python 3.x a pain.
|
||||
unicode = str
|
||||
str = str
|
||||
|
||||
def ascii(s):
|
||||
r"""
|
||||
|
||||
Reference in New Issue
Block a user