open-toontown/otp
Nicolas Sanchez d519a8b71b Replace removed Python 2 string-module functions
string.find/upper/join and string.letters were removed from the string module in Python 3, so these call sites raise AttributeError (or NameError) when reached. Replaced each with the str method equivalent:

- otp/chat/ChatGlobals.py, ChatManager.py: string.find(message, ...) -> message.find(...)
- otp/level/LevelSpec.py: string.upper(type) -> type.upper()
- toontown/pets/PetBase.py, DistributedPetProxyAI.py, DistributedPetProxy.py: string.upper(valueName[0]) -> valueName[0].upper()
- toontown/pets/PetshopGUI.py: string.join(descList, '\n') -> '\n'.join(descList)
- toontown/shtiker/PhotoAlbumPage.py: string.letters -> string.ascii_letters (and added the missing import string)

string.capwords and string.digits are still in the Py3 string module, so QuestPoster's capwords usage is untouched.
2026-05-29 20:22:17 -05:00
..
ai all: replace pandac.PandaModules imports. 2022-12-16 20:40:57 -04:00
avatar avatar: Merged gotoSleep if statement 2023-11-09 02:38:31 +00:00
chat Replace removed Python 2 string-module functions 2026-05-29 20:22:17 -05:00
distributed distributed: Add _getMsgName for verbose logging 2023-01-10 22:45:55 -04:00
friends all: replace pandac.PandaModules imports. 2022-12-16 20:40:57 -04:00
launcher all: replace pandac.PandaModules imports. 2022-12-16 20:40:57 -04:00
level Replace removed Python 2 string-module functions 2026-05-29 20:22:17 -05:00
login fix missing msgtypes 2023-04-23 02:21:37 -04:00
movement all: replace pandac.PandaModules imports. 2022-12-16 20:40:57 -04:00
namepanel all: replace pandac.PandaModules imports. 2022-12-16 20:40:57 -04:00
otpbase Merge branch 'develop' into enhancement/remove-pandac-pandamodules 2022-12-24 00:13:24 -04:00
otpgui general: push the 2013 TTO code 2019-11-02 18:27:54 -04:00
settings settings: Don't need to store result 2021-07-09 00:16:41 -04:00
snapshot ai: AI server progress 2019-11-10 19:46:41 -05:00
speedchat all: replace pandac.PandaModules imports. 2022-12-16 20:40:57 -04:00
status general: pain. 2019-11-08 23:55:55 -05:00
uberdog otp: fix whisper imports 2022-12-16 21:07:17 -04:00
web otp: initial work on python 3.x support 2019-12-30 01:00:16 -05:00
__init__.py general: push the 2013 TTO code 2019-11-02 18:27:54 -04:00