Skip to content

Commit 1450a0c

Browse files
eumirophibos
authored andcommitted
Fix import order
1 parent 1ea063b commit 1450a0c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/source/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
import sys
88
from pathlib import Path
99

10+
from overpy import __about__ as overpy_about
11+
1012
# If extensions (or modules to document with autodoc) are in another directory,
1113
# add these directories to sys.path here. If the directory is relative to the
1214
# documentation root, use os.path.abspath to make it absolute, like shown here.
@@ -49,7 +51,6 @@
4951
# built documents.
5052
#
5153
# The short X.Y version.
52-
from overpy import __about__ as overpy_about
5354
version = overpy_about.__version__
5455
# The full version, including alpha/beta/rc tags.
5556
release = overpy_about.__version__

overpy/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
from collections import OrderedDict
22
from datetime import datetime
33
from decimal import Decimal
4+
from urllib.request import urlopen
5+
from urllib.error import HTTPError
46
from xml.sax import handler, make_parser
57
import json
68
import re
@@ -25,9 +27,6 @@
2527
"visible": lambda v: v.lower() == "true"
2628
}
2729

28-
from urllib.request import urlopen
29-
from urllib.error import HTTPError
30-
3130

3231
def is_valid_type(element, cls):
3332
"""

0 commit comments

Comments
 (0)