Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/update
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2019-02-20 23:37:00 +0100
committerArthur de Jong <arthur@arthurdejong.org>2019-03-03 15:16:34 +0100
commit6eadca15146b6dc3e34ea8ba2b886e3ee63ea908 (patch)
tree5b083f93945ae14842b64456a5526ff4090b98a0 /update
parent9daa1b0cbcfdc74022387430c6f4229485e1ffa8 (diff)
Switch from import-order to isort
Diffstat (limited to 'update')
-rwxr-xr-xupdate/at_postleitzahl.py8
-rwxr-xr-xupdate/do_whitelists.py5
-rwxr-xr-xupdate/my_bp.py1
-rwxr-xr-xupdate/numlist.py5
4 files changed, 10 insertions, 9 deletions
diff --git a/update/at_postleitzahl.py b/update/at_postleitzahl.py
index 9ac43d3..4d2a993 100755
--- a/update/at_postleitzahl.py
+++ b/update/at_postleitzahl.py
@@ -29,15 +29,15 @@ import os.path
import re
import urllib
+import BeautifulSoup
+import xlrd
+
+
try:
from urllib.parse import urljoin
except ImportError:
from urlparse import urljoin
-import BeautifulSoup
-
-import xlrd
-
# The page that contains a link to the downloadable spreadsheet with current
# Austrian postal codes
diff --git a/update/do_whitelists.py b/update/do_whitelists.py
index c70471d..f242c51 100755
--- a/update/do_whitelists.py
+++ b/update/do_whitelists.py
@@ -32,11 +32,12 @@ import textwrap
import urllib
import zipfile
-# Ensure that we use our local stdnum implementation is used
+
+# Ensure that our local stdnum implementation is used
sys.path.insert(0, os.path.normpath(
os.path.join(os.path.dirname(os.path.abspath(__file__)), '..')))
-from stdnum.do import cedula, rnc # noqa
+from stdnum.do import cedula, rnc # noqa, isort:skip
# The URL of the zip file with all valid numbers
diff --git a/update/my_bp.py b/update/my_bp.py
index 49d7ffa..ad9bc60 100755
--- a/update/my_bp.py
+++ b/update/my_bp.py
@@ -26,7 +26,6 @@ import re
from collections import defaultdict
import BeautifulSoup
-
import requests
diff --git a/update/numlist.py b/update/numlist.py
index 933cc8d..8d6d086 100755
--- a/update/numlist.py
+++ b/update/numlist.py
@@ -25,11 +25,12 @@ suitable to be included in the README and stdnum package description."""
import os.path
import sys
-# Ensure that we use our local stdnum implementation is used
+
+# Ensure that our local stdnum implementation is used
sys.path.insert(0, os.path.normpath(
os.path.join(os.path.dirname(os.path.abspath(__file__)), '..')))
-from stdnum import util # noqa
+from stdnum import util # noqa, isort:skip
# these are excluded