cleanup
This commit is contained in:
parent
cdfea7b211
commit
29ab5ee5d0
|
@ -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):
|
||||
|
|
|
@ -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 + "..."))
|
|
@ -1,5 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
from __future__ import absolute_import
|
||||
from bezmisc import *
|
||||
from ffgeom import *
|
||||
|
||||
|
|
|
@ -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 *
|
||||
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue