Fix detection of new python 3.9 stdlib module as such

This commit is contained in:
Dmitry Marakasov 2020-11-02 10:40:48 +00:00
parent 62caf5a1ab
commit 5e26198f2f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=553896
2 changed files with 20 additions and 0 deletions

View file

@ -3,6 +3,7 @@
PORTNAME= flake8-import-order
PORTVERSION= 0.18.1
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}

View file

@ -0,0 +1,19 @@
From 6916da0cfbbe21e8b49bed3cbf25b9657dfe9452 Mon Sep 17 00:00:00 2001
From: Dmitry Marakasov <amdmi3@amdmi3.ru>
Date: Tue, 20 Oct 2020 16:26:42 +0300
Subject: [PATCH] Recognize zoneinfo introduced in python 3.9 as stdlib
---
flake8_import_order/stdlib_list.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/flake8_import_order/stdlib_list.py b/flake8_import_order/stdlib_list.py
index c6d9353..59fd913 100644
--- flake8_import_order/stdlib_list.py
+++ flake8_import_order/stdlib_list.py
@@ -316,4 +316,5 @@
"zipfile",
"zipimport",
"zlib",
+ "zoneinfo",
}