Skip to content

Commit 505d4f9

Browse files
authored
Fix typo in return value from README (fixes #652)
The same code is in both the README and compliant03.py. This change fixes the typo in compliant03.py. Signed-off-by: Michael Scovetta <[email protected]>
1 parent a9350ee commit 505d4f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/Secure-Coding-Guide-for-Python/CWE-703/CWE-392/compliant03.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def map_threads(x):
1919
for res in result_gen:
2020
ret.append(res)
2121
invalid_arg += 1
22-
return res
22+
return ret
2323
except ValueError as e:
2424
# handle exception...
2525
raise ValueError(

0 commit comments

Comments
 (0)