We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fp = open(path,args,kwargs) # Body fp.close
with open(path,args,kwargs as fp: # Body
Without a context manager you need to manually close the file, which is eror-prone.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
New smell
Smelly code
Fixed code
Why is it smelly?
Without a context manager you need to manually close the file, which is eror-prone.
The text was updated successfully, but these errors were encountered: