Skip to content

Commit 25c242e

Browse files
committed
Modernize the code for Python 3.9
Applied via pyupgrade
1 parent 253c66a commit 25c242e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
def get_version():
10-
version_file = open("django_prometheus/__init__.py", "r").read()
10+
version_file = open("django_prometheus/__init__.py").read()
1111
version_match = re.search(
1212
r'^__version__ = [\'"]([^\'"]*)[\'"]', version_file, re.MULTILINE
1313
)

0 commit comments

Comments
 (0)