Skip to content

Commit e0e5822

Browse files
committed
0.2.18, changed sys.version compararion
1 parent 1735422 commit e0e5822

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from setuptools import find_packages
33

44
setup(name='sqlmat',
5-
version='0.2.17',
5+
version='0.2.18',
66
description='simply map python3 statement to postgresql statement',
77
author='Zeng Ke',
88
author_email='superisaac.ke@gmail.com',

sqlmat/db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def get_frame(self, pool: Pool) -> 'TxFrame':
102102
return self.entries[pool]
103103

104104
def contextvar_available() -> bool:
105-
return sys.version >= '3.7'
105+
return (sys.version_info.major, sys.version_info.minor) >= (3, 7)
106106

107107
if contextvar_available():
108108
from contextvars import ContextVar

0 commit comments

Comments
 (0)