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:
rembo10
2022-01-14 10:38:03 +05:30
parent 9a7006ad14
commit ab4dd18be4
813 changed files with 146338 additions and 65753 deletions
+2 -2
View File
@@ -48,7 +48,7 @@ class User(object):
self.passkey = index_json_response['passkey']
self.notifications = index_json_response['notifications']
if self.stats:
self.stats = dict(self.stats.items() + index_json_response['userstats'].items()) # merge in new info
self.stats = dict(list(self.stats.items()) + list(index_json_response['userstats'].items())) # merge in new info
else:
self.stats = index_json_response['userstats']
@@ -76,7 +76,7 @@ class User(object):
self.is_friend = user_json_response['isFriend']
self.profile_text = user_json_response['profileText']
if self.stats:
self.stats = dict(self.stats.items() + user_json_response['stats'].items()) # merge in new info
self.stats = dict(list(self.stats.items()) + list(user_json_response['stats'].items())) # merge in new info
else:
self.stats = user_json_response['stats']
self.ranks = user_json_response['ranks']