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
|
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
|
import math, cmath
|
||||||
|
|
||||||
def rootWrapper(a,b,c,d):
|
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
|
#!/usr/bin/env python
|
||||||
from __future__ import absolute_import
|
|
||||||
from bezmisc import *
|
from bezmisc import *
|
||||||
from ffgeom 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
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from __future__ import absolute_import
|
|
||||||
import simplepath
|
import simplepath
|
||||||
from math import *
|
from math import *
|
||||||
|
|
||||||
|
@ -19,7 +19,6 @@
|
|||||||
along with FretFind 2-D; if not, write to the Free Software
|
along with FretFind 2-D; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
"""
|
"""
|
||||||
from __future__ import absolute_import
|
|
||||||
import math
|
import math
|
||||||
try:
|
try:
|
||||||
NaN = float('NaN')
|
NaN = float('NaN')
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
from __future__ import absolute_import
|
|
||||||
import logging
|
|
||||||
import traceback
|
import traceback
|
||||||
import xml.etree.ElementTree as ET
|
import xml.etree.ElementTree as ET
|
||||||
import simplepath
|
import simplepath
|
||||||
@ -10,7 +8,6 @@ import cubicsuperpath
|
|||||||
import cspsubdiv
|
import cspsubdiv
|
||||||
from bezmisc import beziersplitatt
|
from bezmisc import beziersplitatt
|
||||||
|
|
||||||
|
|
||||||
class svgshape(object):
|
class svgshape(object):
|
||||||
|
|
||||||
def __init__(self, xml_node):
|
def __init__(self, xml_node):
|
||||||
@ -143,7 +140,6 @@ class polycommon(svgshape):
|
|||||||
else:
|
else:
|
||||||
logging.error("polycommon: Unable to get the attributes for %s", self.xml_node)
|
logging.error("polycommon: Unable to get the attributes for %s", self.xml_node)
|
||||||
|
|
||||||
|
|
||||||
class polygon(polycommon):
|
class polygon(polycommon):
|
||||||
|
|
||||||
def __init__(self, xml_node):
|
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
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from __future__ import absolute_import
|
|
||||||
import re, math
|
import re, math
|
||||||
|
|
||||||
def lexPath(d):
|
def lexPath(d):
|
||||||
|
@ -21,7 +21,6 @@ barraud@math.univ-lille1.fr
|
|||||||
This code defines several functions to make handling of transform
|
This code defines several functions to make handling of transform
|
||||||
attribute easier.
|
attribute easier.
|
||||||
'''
|
'''
|
||||||
from __future__ import absolute_import
|
|
||||||
import cubicsuperpath, bezmisc
|
import cubicsuperpath, bezmisc
|
||||||
import copy, math, re, inkex
|
import copy, math, re, inkex
|
||||||
|
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
|
|
||||||
from __future__ import absolute_import
|
|
||||||
from __future__ import print_function
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
import xml.etree.ElementTree as ET
|
import xml.etree.ElementTree as ET
|
||||||
@ -64,7 +62,7 @@ def generate_gcode(svg_file_root_tree, gcode_file):
|
|||||||
except ValueError:
|
except ValueError:
|
||||||
continue
|
continue
|
||||||
if tag_suffix in svg_shapes:
|
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)
|
shape_obj = shape_class(elem)
|
||||||
obj_path = shape_obj.d_path()
|
obj_path = shape_obj.d_path()
|
||||||
obj_trans_matrix = shape_obj.transformation_matrix()
|
obj_trans_matrix = shape_obj.transformation_matrix()
|
||||||
|
Loading…
Reference in New Issue
Block a user