open-toontown/otp/chat
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
..
ChatGarbler.py general: push the 2013 TTO code 2019-11-02 18:27:54 -04:00
ChatGlobals.py Replace removed Python 2 string-module functions 2026-05-29 20:22:17 -05:00
ChatInputNormal.py all: replace pandac.PandaModules imports. 2022-12-16 20:40:57 -04:00
ChatInputTyped.py all: replace pandac.PandaModules imports. 2022-12-16 20:40:57 -04:00
ChatInputWhiteListFrame.py general: Fix more missing imports 2022-12-20 01:55:35 -04:00
ChatManager.py Replace removed Python 2 string-module functions 2026-05-29 20:22:17 -05:00
TalkAssistant.py more DeprecationWarning removal 2022-01-19 14:31:52 -05:00
TalkGlobals.py general: push the 2013 TTO code 2019-11-02 18:27:54 -04:00
TalkHandle.py general: push the 2013 TTO code 2019-11-02 18:27:54 -04:00
TalkMessage.py general: push the 2013 TTO code 2019-11-02 18:27:54 -04:00
WhiteList.py remove unused imports from WhiteList.py 2022-01-20 00:30:16 -05:00
__init__.py general: push the 2013 TTO code 2019-11-02 18:27:54 -04:00