diff --git a/bezmisc.py b/bezmisc.py index 348c360..42733bf 100755 --- a/bezmisc.py +++ b/bezmisc.py @@ -18,8 +18,6 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ''' -from __future__ import absolute_import -from __future__ import print_function import math, cmath def rootWrapper(a,b,c,d): diff --git a/convert.py b/convert.py deleted file mode 100644 index 6b928e1..0000000 --- a/convert.py +++ /dev/null @@ -1,8 +0,0 @@ -from __future__ import absolute_import -from __future__ import print_function -import os - -for filename in os.listdir('.'): - if filename.endswith('.py'): - os.system("modernize -w " + filename + " --no-six") - print(("Converting", filename + "...")) \ No newline at end of file diff --git a/cspsubdiv.py b/cspsubdiv.py index 1b6905c..73d7247 100755 --- a/cspsubdiv.py +++ b/cspsubdiv.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -from __future__ import absolute_import from bezmisc import * from ffgeom import * diff --git a/cubicsuperpath.py b/cubicsuperpath.py index 62d1a1c..da46f80 100755 --- a/cubicsuperpath.py +++ b/cubicsuperpath.py @@ -19,7 +19,6 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA """ -from __future__ import absolute_import import simplepath from math import * diff --git a/ffgeom.py b/ffgeom.py index b8de1f2..ef8799b 100644 --- a/ffgeom.py +++ b/ffgeom.py @@ -19,7 +19,6 @@ along with FretFind 2-D; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA """ -from __future__ import absolute_import import math try: NaN = float('NaN') diff --git a/shapes.py b/shapes.py index 58f63d8..c129118 100644 --- a/shapes.py +++ b/shapes.py @@ -1,7 +1,5 @@ #!/usr/bin/env python -from __future__ import absolute_import -import logging import traceback import xml.etree.ElementTree as ET import simplepath @@ -10,7 +8,6 @@ import cubicsuperpath import cspsubdiv from bezmisc import beziersplitatt - class svgshape(object): def __init__(self, xml_node): @@ -143,7 +140,6 @@ class polycommon(svgshape): else: logging.error("polycommon: Unable to get the attributes for %s", self.xml_node) - class polygon(polycommon): def __init__(self, xml_node): diff --git a/simplepath.py b/simplepath.py index 459b101..35432b1 100755 --- a/simplepath.py +++ b/simplepath.py @@ -20,7 +20,6 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA """ -from __future__ import absolute_import import re, math def lexPath(d): diff --git a/simpletransform.py b/simpletransform.py index 7ef7772..02f23f0 100755 --- a/simpletransform.py +++ b/simpletransform.py @@ -21,7 +21,6 @@ barraud@math.univ-lille1.fr This code defines several functions to make handling of transform attribute easier. ''' -from __future__ import absolute_import import cubicsuperpath, bezmisc import copy, math, re, inkex diff --git a/svg2gcode.py b/svg2gcode.py index a91f9ef..829f3f9 100755 --- a/svg2gcode.py +++ b/svg2gcode.py @@ -1,7 +1,5 @@ #!/usr/bin/python -from __future__ import absolute_import -from __future__ import print_function import sys import os import xml.etree.ElementTree as ET @@ -64,7 +62,7 @@ def generate_gcode(svg_file_root_tree, gcode_file): except ValueError: continue if tag_suffix in svg_shapes: - shape_class = getattr(shapes_pkg, tag_suffix) + shape_class = getattr(shapes_pkg, tag_suffix) #return shape from shapes.py shape_obj = shape_class(elem) obj_path = shape_obj.d_path() obj_trans_matrix = shape_obj.transformation_matrix()