Skip to content

Commit 89e8b0d

Browse files
committed
Fixing use of version_info
1 parent 38a9bc6 commit 89e8b0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pylint_django/transforms/fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def apply_type_shim(cls, context=None):
3434
elif cls.name == 'FloatField':
3535
base_nodes = scoped_nodes.builtin_lookup('float')
3636
elif cls.name == 'DecimalField':
37-
if sys.versioninfo >= (3, 5):
37+
if sys.version_info >= (3, 5):
3838
# I dunno, I'm tired and this works :(
3939
base_nodes = MANAGER.ast_from_module_name('_decimal').lookup('Decimal')
4040
else:

0 commit comments

Comments
 (0)