From 6eadca15146b6dc3e34ea8ba2b886e3ee63ea908 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Wed, 20 Feb 2019 23:37:00 +0100 Subject: Switch from import-order to isort --- update/at_postleitzahl.py | 8 ++++---- update/do_whitelists.py | 5 +++-- update/my_bp.py | 1 - update/numlist.py | 5 +++-- 4 files changed, 10 insertions(+), 9 deletions(-) (limited to 'update') 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 -- cgit v1.2.3