kopia lustrzana https://github.com/inkstitch/inkstitch
Define xrange() for Python 3
__xrange()__ was dropped from Python 3 in favor of __range()__. This PR does not modify Python 2 functionality.pull/12/head
rodzic
56aeabd9a6
commit
4ef2dee210
|
@ -8,6 +8,12 @@ import colorsys
|
|||
|
||||
from embroider import patches_to_stitches, stitches_to_polylines, PIXELS_PER_MM
|
||||
|
||||
try:
|
||||
xrange # Python 2
|
||||
except NameError:
|
||||
xrange = range # Python 3
|
||||
|
||||
|
||||
class EmbroiderySimulator(wx.Frame):
|
||||
def __init__(self, *args, **kwargs):
|
||||
stitch_file = kwargs.pop('stitch_file', None)
|
||||
|
|
Ładowanie…
Reference in New Issue