Skip to content

Commit 272f6e5

Browse files
committed
Fix SyntaxError: add missing closing paren on DIGIT_PAIRS_8 .replace() call
Same merge-from-main artifact as microsoft#2029: the closing ')' of the new DIGIT_PAIRS_8 '.replace(...)' call was dropped when the 'read<end' '.replace(...)' block was spliced in, leaving the second call's args being parsed as continued positional args to the first.
1 parent 119b671 commit 272f6e5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/debugpy/_vendored/pydevd/setup_pydevd_cython.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ def build_extension(dir_name, extension_name, target_pydevd_name, force_cython,
185185
c_file_contents = c_file_contents.replace(
186186
" memcpy(dpos, DIGIT_PAIRS_8 + digit_pos * 2, 2);\n",
187187
" memcpy(dpos, DIGIT_PAIRS_8 + digit_pos * 2, 2); /* Flawfinder: ignore */\n",
188+
)
189+
188190
# Suppress Flawfinder false positive (CWE-120/CWE-20) in the
189191
# Cython 3.x ModuleStateLookup boilerplate (`__Pyx_State_ConvertFromInterpIdAsIndex`):
190192
# `read` is a bounded pointer iterator (not POSIX read()), and the loop is

0 commit comments

Comments
 (0)