open-toontown/toontown
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 hood: add fisherman + party toons to playgrounds 2023-05-23 18:21:29 +01:00
battle spellbook: ToggleInstantKill magic word 2023-11-09 02:55:44 +00:00
building DistributedToonHallInterior: Fix missing import issue 2023-09-11 05:50:34 -04:00
catalog Merge branch 'custom/png-conversion' into feature/png-conversion 2023-01-12 19:31:25 -06:00
char Merge branch 'custom/png-conversion' into feature/png-conversion 2023-01-12 19:31:25 -06:00
chat all: replace pandac.PandaModules imports. 2022-12-16 20:40:57 -04:00
classicchars otp: no delay district checking after none found. 2022-12-31 03:26:27 -04:00
coderedemption toontown: initial work on python 3.x support 2019-12-30 01:07:56 -05:00
cogdominium fix more ImportErrors 2023-03-26 20:39:59 -04:00
coghq spellbook: Teleport to factories. 2023-01-10 20:16:08 -04:00
distributed street: Disable downloading street sign by default 2023-01-10 21:29:50 -04:00
effects spellbook: Fireworks magic word 2022-12-31 05:20:47 -04:00
estate Merge branch 'custom/png-conversion' into feature/png-conversion 2023-01-12 19:31:25 -06:00
fishing hood: add fisherman + party toons to playgrounds 2023-05-23 18:21:29 +01:00
friends all: replace pandac.PandaModules imports. 2022-12-16 20:40:57 -04:00
golf golf: Address missing imports (#112) 2023-11-07 18:59:21 -04:00
hood more cleanup 2023-04-28 21:51:00 -04:00
launcher all: replace pandac.PandaModules imports. 2022-12-16 20:40:57 -04:00
login all: replace pandac.PandaModules imports. 2022-12-16 20:40:57 -04:00
makeatoon all: replace pandac.PandaModules imports. 2022-12-16 20:40:57 -04:00
minigame fix photo fun memory leak identified in #109 2023-10-31 18:58:44 +00:00
parties Merge branch 'custom/png-conversion' into feature/png-conversion 2023-01-12 19:31:25 -06:00
pets Replace removed Python 2 string-module functions 2026-05-29 20:22:17 -05:00
quest Merge branch 'develop' into enhancement/remove-pandac-pandamodules 2022-12-24 00:13:24 -04:00
racing fix more crashes 2023-04-29 00:23:47 -04:00
rpc general: pain. 2019-11-08 23:55:55 -05:00
safezone more cleanup 2023-04-28 21:51:00 -04:00
shtiker Replace removed Python 2 string-module functions 2026-05-29 20:22:17 -05:00
speedchat general: Fix enum starting positions 2022-11-08 15:14:06 +01:00
spellbook spellbook: Fix Teleport command redundancies, add support for BossBattle targeting 2023-11-09 03:46:35 +00:00
suit Merge pull request #67 from loonaticx/feature/ttf-fonts 2023-03-26 15:17:00 -04:00
toon spellbook: Fix Teleport command redundancies, add support for BossBattle targeting 2023-11-09 03:46:35 +00:00
toonbase more cleanup, game will crash 2023-04-24 00:12:43 -04:00
toontowngui all: replace pandac.PandaModules imports. 2022-12-16 20:40:57 -04:00
town Merge branch 'custom/png-conversion' into feature/png-conversion 2023-01-12 19:31:25 -06:00
trolley all: replace pandac.PandaModules imports. 2022-12-16 20:40:57 -04:00
tutorial Merge branch 'develop' into enhancement/remove-pandac-pandamodules 2022-12-24 00:13:24 -04:00
uberdog hood: add fisherman + party toons to playgrounds 2023-05-23 18:21:29 +01:00
__init__.py general: push the 2013 TTO code 2019-11-02 18:27:54 -04:00