summaryrefslogtreecommitdiff
path: root/lib/threads
diff options
context:
space:
mode:
Diffstat (limited to 'lib/threads')
-rw-r--r--lib/threads/catalog.py2
-rw-r--r--lib/threads/palette.py3
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/threads/catalog.py b/lib/threads/catalog.py
index cebae4ff..d9981dc6 100644
--- a/lib/threads/catalog.py
+++ b/lib/threads/catalog.py
@@ -3,8 +3,10 @@ from os.path import dirname, realpath
import sys
from glob import glob
from collections import Sequence
+
from .palette import ThreadPalette
+
class _ThreadCatalog(Sequence):
"""Holds a set of ThreadPalettes."""
diff --git a/lib/threads/palette.py b/lib/threads/palette.py
index e1f47c7f..785fb082 100644
--- a/lib/threads/palette.py
+++ b/lib/threads/palette.py
@@ -1,9 +1,10 @@
from collections import Set
-from .color import ThreadColor
from colormath.color_objects import sRGBColor, LabColor
from colormath.color_conversions import convert_color
from colormath.color_diff import delta_e_cie1994
+from .color import ThreadColor
+
def compare_thread_colors(color1, color2):
# K_L=2 indicates textiles