Skip to content

Commit

Permalink
The default mode of open() is 'r'
Browse files Browse the repository at this point in the history
No need to specify explicitly.

Issue caught by linter tools such as pyrefurb or pyupgrade.
  • Loading branch information
DimitriPapadopoulos committed Oct 28, 2022
1 parent 9a741c2 commit d03b0e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import os
from setuptools import setup

with open(os.path.join(os.getcwd(), 'README.rst'), 'r') as f:
with open(os.path.join(os.getcwd(), 'README.rst')) as f:
readme_content = f.read()

setup(
Expand Down

0 comments on commit d03b0e1

Please sign in to comment.