Skip to content
Permalink
Browse files

Py3: use feature detection instead of version detection

  • Loading branch information...
wwmayer committed Jan 5, 2019
1 parent 381f087 commit 2c3268f9f68a926f9bbe5a1c64ca4935677b54a9
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/Mod/Path/PathScripts/PathUtils.py
@@ -715,10 +715,10 @@ def sort_jobs(locations, keys, attractors=[]):
keys: two-element list of keys for X and Y coordinates. for example ['x','y']
originally written by m0n5t3r for PathHelix
"""
if sys.version_info.major < 3:
from Queue import PriorityQueue
else:
try:
from queue import PriorityQueue
except ImportError:
from Queue import PriorityQueue
from collections import defaultdict

attractors = attractors or [keys[0]]

0 comments on commit 2c3268f

Please sign in to comment.
You can’t perform that action at this time.