Skip to content

Commit cb55264

Browse files
committed
Changes for memory fixes in CP 9.0-alpha.5
1 parent 35431b6 commit cb55264

File tree

5 files changed

+8
-18
lines changed

5 files changed

+8
-18
lines changed

cpython/lib/optional/pydos_ui_lilygokbd.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def input(disp_text=None):
8383
bld_chr1 = '_(+'
8484
bld_chr2 = '-+)'
8585
bld_chr = '=[]'
86-
bld_started = [False, False, False]
86+
bld_started = False
8787

8888
histPntr = len(Pydos_ui.commandHistory)
8989

@@ -189,17 +189,17 @@ def input(disp_text=None):
189189
# '_-' -> '=' '(+' -> '[' '+)' -> ']'
190190
bld_done = False
191191
bcindx = bld_chr2.find(keys[editCol-1:editCol])
192-
if bld_chr1.find(keys[editCol-1:editCol]) != -1 and not True in bld_started and arrow == "":
193-
bld_started[bld_chr1.find(keys[editCol-1:editCol])] = True
194-
elif keys[editCol-2:editCol] == bld_chr1[bcindx]+bld_chr2[bcindx] and bld_started[bcindx]:
195-
bld_started = [False for _ in bld_started]
192+
if bld_chr1.find(keys[editCol-1:editCol]) != -1 and not bld_started and arrow == "":
193+
bld_started = True
194+
elif keys[editCol-2:editCol] == bld_chr1[bcindx]+bld_chr2[bcindx] and bld_started:
195+
bld_started = False
196196
keys = keys[:editCol-2]+bld_chr[bcindx]+keys[editCol:]
197197
print('\x08'+keys[editCol-2:]+' '+('\x08'*(len(keys[editCol:])+(1 if onLast else 2))),end="")
198198
editCol -= 1
199199
bld_done = True
200200
else:
201-
bld_started = [False for _ in bld_started]
202-
201+
bld_started = False
202+
203203
if arrow != "" and ctrlkeys != "":
204204
editCol -= 1
205205
elif arrow !='':

cpython/lib/optional/settings.toml.large

Lines changed: 0 additions & 2 deletions
This file was deleted.

cpython/lib/optional/settings.toml.medium

Lines changed: 0 additions & 2 deletions
This file was deleted.

settings.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
CIRCUITPY_PYSTACK_SIZE=10000
1+
CIRCUITPY_PYSTACK_SIZE=4000

setup.bat

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,6 @@ if not "%_boardID%" == "lilygo_tdeck" goto not_lilygo_tdeck
8181
rename /lib/pydos_ui.py /lib/pydos_ui_uart.py
8282
echo copy /cpython/lib/optional/pydos_ui_lilygokbd.py /lib/pydos_ui.py
8383
copy/y /cpython/lib/optional/pydos_ui_lilygokbd.py /lib/pydos_ui.py
84-
echo copy /cpython/lib/optional/settings.toml.large /settings.toml
85-
copy/y /cpython/lib/optional/settings.toml.large /settings.toml
8684
set _ans2 = A
8785
goto skip_touchmsg
8886

@@ -91,8 +89,6 @@ if "%_boardID%" == "makerfabs_tft7" goto tablet
9189
if "%_boardID%" == "espressif_esp32s3_devkitc_1_n8r8_hacktablet" goto tablet
9290
goto not_tablet
9391
:tablet
94-
echo copy /cpython/lib/optional/settings.toml.large /settings.toml
95-
copy/y /cpython/lib/optional/settings.toml.large /settings.toml
9692
set _ans2 = A
9793
goto esp32
9894

@@ -139,8 +135,6 @@ if %_ans% == M goto esp32MP
139135
copy/y /cpython/ESP32/* /
140136
copy /cpython/ESP32/lib/* /lib/
141137
if %_ans2% == A goto wifienv
142-
echo copy /cpython/lib/optional/settings.toml.medium /settings.toml
143-
copy/y /cpython/lib/optional/settings.toml.medium /settings.toml
144138
goto other
145139

146140
:esp32MP

0 commit comments

Comments
 (0)