We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent becd3f9 commit 84763e8Copy full SHA for 84763e8
setup.py
@@ -3,12 +3,8 @@
3
4
from setuptools import setup, find_packages
5
6
-version_info_major = sys.version_info[0]
7
-if version_info_major == 3:
8
- long_description = open('README.rst', encoding="utf8").read()
9
-else:
10
- io_open = open('README.rst', encoding="utf8")
11
- long_description = io_open.read()
+with open('README.rst', encoding="utf8") as f:
+ long_description = f.read()
12
13
setup(
14
name="json-logging",
tests/helpers/constants.py
@@ -15,7 +15,7 @@
15
"correlation_id",
16
]
17
18
-if sys.version_info.major == 3 and sys.version_info.minor >= 12:
+if sys.version_info >= (3, 12):
19
_msg_attrs.append("taskName")
20
21
STANDARD_MSG_ATTRIBUTES = set(_msg_attrs)
0 commit comments