Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 735 Bytes

deprecated-method.md

File metadata and controls

25 lines (15 loc) · 735 Bytes

Pattern: Deprecated method

Issue: -

Description

The method is marked as deprecated and will be removed in a future version of Python. Consider looking for an alternative in the documentation.

Example of incorrect code:

status = os.system("mycmd" + " myarg")

Example of correct code:

status = subprocess.call("mycmd" + " myarg", shell=True)

Further Reading