Skip to content

Commit 2fff3a6

Browse files
authored
Merge pull request #423 from oasis-open/fix-six-version
Fix six version
2 parents ee3425c + b29527c commit 2fff3a6

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

.isort.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[settings]
22
skip = workbench.py
3-
not_skip = __init__.py
43
known_third_party =
54
antlr4,
65
dateutil,

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def get_long_description():
5151
'pytz',
5252
'requests',
5353
'simplejson',
54-
'six',
54+
'six>=1.13.0',
5555
'stix2-patterns',
5656
],
5757
project_urls={

stix2/environment.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
"""Python STIX2 Environment API."""
2-
32
import copy
43
import logging
54
import time
@@ -463,7 +462,7 @@ def partial_location_distance(lat1, long1, lat2, long2, threshold):
463462
float: Number between 0.0 and 1.0 depending on match.
464463
465464
"""
466-
from haversine import haversine, Unit
465+
from haversine import Unit, haversine
467466
distance = haversine((lat1, long1), (lat2, long2), unit=Unit.KILOMETERS)
468467
result = 1 - (distance / threshold)
469468
logger.debug(

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ max-line-length = 160
3030
[testenv:isort-check]
3131
deps = isort
3232
commands =
33-
isort -rc stix2 examples -df
34-
isort -rc stix2 examples -c
33+
isort stix2 examples --df
34+
isort stix2 examples -c
3535

3636
[testenv:packaging]
3737
deps =

0 commit comments

Comments
 (0)