Python

Python

Made by DeepSource

Consider removing the commented out code block PY-W0069

Anti-pattern
Major
Autofix

It is recommended to remove any commented code in your codebase.

Bad practice

for item in sequence:
    # print(item)
    do_something(item)

# def old_function():
#     '''Older implementation that has been replaced'''
#     data = get_data()
#     api.post(data)

Recommended

for item in sequence:
    do_something(item)