Skip to content

Commit

Permalink
Merge pull request vlachoudis#766 from SteveMoto/remove-unused-import…
Browse files Browse the repository at this point in the history
…-calls

remove unused import calls
  • Loading branch information
vlachoudis authored Feb 18, 2018
2 parents 798fb2a + bdff8a3 commit 3a72ab9
Show file tree
Hide file tree
Showing 24 changed files with 12 additions and 68 deletions.
4 changes: 0 additions & 4 deletions CNC.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,8 @@

import os
import re
import pdb
import sys
import math
import types
import random
import string

import undo
import Unicode
Expand Down
2 changes: 0 additions & 2 deletions CNCList.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
# Date: 24-Aug-2014

from __future__ import print_function
import re
import sys
try:
from cStringIO import StringIO
except ImportError:
Expand Down
5 changes: 0 additions & 5 deletions Camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@
except ImportError:
np = None

try:
from Tkinter import *
except ImportError:
from tkinter import *

try:
from PIL import Image, ImageTk
except ImportError:
Expand Down
2 changes: 0 additions & 2 deletions FilePage.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@

try:
from Tkinter import *
import ConfigParser
except ImportError:
from tkinter import *
import configparser as ConfigParser

import tkExtra

Expand Down
4 changes: 2 additions & 2 deletions ProbePage.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
__email__ = "vvlachoudis@gmail.com"

import sys
import time
# import time
import math

try:
Expand All @@ -17,7 +17,7 @@
from tkinter import *
import tkinter.messagebox as tkMessageBox

from CNC import WCS,CNC
from CNC import CNC
import Utils
import Camera
import Ribbon
Expand Down
3 changes: 0 additions & 3 deletions Ribbon.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,8 @@
except ImportError:
from tkinter import *

import time
import Utils
import tkExtra
import Unicode
from log import say

_TABFONT = ("Sans","-14","bold")
_FONT = ("Sans","-11")
Expand Down
2 changes: 0 additions & 2 deletions Updates.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
__author__ = "Vasilis Vlachoudis"
__email__ = "vvlachoudis@gmail.com"

import os
import re
import time
import json

Expand Down
6 changes: 0 additions & 6 deletions bCNC.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
__email__ = "vvlachoudis@gmail.com"

import os
import re
import sys
import pdb
import time
import getopt
import socket
Expand All @@ -29,13 +27,11 @@
import Tkinter
from Queue import *
from Tkinter import *
import ConfigParser
import tkMessageBox
except ImportError:
import tkinter
from queue import *
from tkinter import *
import configparser as ConfigParser
import tkinter.messagebox as tkMessageBox

PRGPATH=os.path.abspath(os.path.dirname(__file__))
Expand All @@ -50,7 +46,6 @@

import rexx
import tkExtra
import Unicode
import Updates
import bFileDialog

Expand All @@ -59,7 +54,6 @@
import Pendant
from Sender import Sender, NOT_CONNECTED, STATECOLOR, STATECOLORDEF

import CNCList
import CNCCanvas
import webbrowser

Expand Down
10 changes: 6 additions & 4 deletions lib/bpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
__author__ = "Vasilis Vlachoudis"
__email__ = "Vasilis.Vlachoudis@cern.ch"

import sys
import time
from math import *
from bmath import Vector, quadratic
Expand Down Expand Up @@ -881,7 +880,8 @@ def offset(self, offset, name=None):

Op = O
prev = segment
#sys.stdout.write("# path.offset: %g\n"%(time.time()-start))
# import sys
# sys.stdout.write("# path.offset: %g\n"%(time.time()-start))
return path

#----------------------------------------------------------------------
Expand Down Expand Up @@ -964,7 +964,8 @@ def intersectSelf(self):
j += 1
# move to next step
i += 1
#sys.stdout.write("# path.intersect: %g\n"%(time.time()-start))
# import sys
# sys.stdout.write("# path.intersect: %g\n"%(time.time()-start))

#----------------------------------------------------------------------
# remove the excluded segments from an intersect path
Expand Down Expand Up @@ -997,7 +998,8 @@ def removeExcluded(self, path, offset):
include = path.distance(segment.end) >= chkofs
# print "+E+",i, segment.end, path.distance(segment.end)-chkofs, include
i += 1
#sys.stdout.write("# path.removeExcluded: %g\n"%(time.time()-start))
# import sys
# sys.stdout.write("# path.removeExcluded: %g\n"%(time.time()-start))

#----------------------------------------------------------------------
# Perform overcut movements on corners, moving at half angle by
Expand Down
1 change: 0 additions & 1 deletion lib/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
__email__ = "Vasilis.Vlachoudis@cern.ch"

import sys
import string

#-------------------------------------------------------------------------------
_log = None
Expand Down
2 changes: 0 additions & 2 deletions lib/midiparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@

# MIDI Parsing Library for Python.

import sys

TRUE = -1
FALSE = 0

Expand Down
2 changes: 0 additions & 2 deletions lib/tkDialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,8 @@
__author__ = "Vasilis Vlachoudis"
__email__ = "Vasilis.Vlachoudis@cern.ch"

import os
import sys
import time
import string
import subprocess

try:
Expand Down
3 changes: 0 additions & 3 deletions lib/tkExtra.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,8 @@
__author__ = "Vasilis Vlachoudis"
__email__ = "Vasilis.Vlachoudis@cern.ch"

import os
import re
import time
import signal
import string
import Unicode
import bFileDialog
from log import say
Expand Down
1 change: 0 additions & 1 deletion plugins/driller.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
__version__= "0.0.7"

import math
from bmath import Vector
from CNC import CNC,Block
from ToolsPage import Plugin

Expand Down
1 change: 0 additions & 1 deletion plugins/flatten.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
__name__ = _("Flatten")
__version__= "0.0.2"

import math
from CNC import CNC,Block
from ToolsPage import Plugin

Expand Down
2 changes: 1 addition & 1 deletion plugins/gear.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

import math
from bmath import Vector
from CNC import CW,CCW,CNC,Block
from CNC import CW,CNC,Block
from ToolsPage import Plugin

#==============================================================================
Expand Down
9 changes: 2 additions & 7 deletions plugins/halftone.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,14 @@
__version__= "0.0.1"

import math
import time

from CNC import CW,CCW,CNC,Block
from CNC import CW,CNC,Block
from ToolsPage import Plugin
try:
from PIL import Image, ImageDraw, ImageStat
from PIL import Image, ImageStat
except ImportError:
Image = None

try:
import tkMessageBox
except ImportError:
import tkinter.messagebox as tkMessageBox

#==============================================================================
# Create Halftone
Expand Down
4 changes: 0 additions & 4 deletions plugins/heightmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,11 @@
__name__ = _("Heightmap")
__version__= "0.0.1"

from ToolsPage import DataBase

import math
from bmath import Vector
from CNC import CNC,Block
from ToolsPage import Plugin

from imageToGcode import *
import math

#==============================================================================
#Heightmap class
Expand Down
2 changes: 0 additions & 2 deletions plugins/hilbert.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
__name__ = _("Hilbert")
__version__= "0.0.1"

import math
from bmath import Vector
from CNC import CNC,Block
from ToolsPage import Plugin

Expand Down
3 changes: 0 additions & 3 deletions plugins/midi2cnc.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
__name__ = "Midi2CNC"
__version__= "0.0.1"

from ToolsPage import DataBase

import math
from bmath import Vector
from CNC import CNC,Block
from ToolsPage import Plugin

Expand Down
2 changes: 0 additions & 2 deletions plugins/pyrograph.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
__name__ = _("Pyrograph")
__version__= "0.0.3"

import math
from bmath import Vector
from CNC import CNC,Block
from ToolsPage import Plugin

Expand Down
7 changes: 1 addition & 6 deletions plugins/sketch.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,13 @@
__version__= "0.0.1"

import math
import time
# import time
import random
from array import *

from bmath import Vector
from CNC import CNC,Block
from ToolsPage import Plugin

try:
import tkMessageBox
except ImportError:
import tkinter.messagebox as tkMessageBox

#==============================================================================
# Create sketch
Expand Down
1 change: 0 additions & 1 deletion plugins/spirograph.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
__version__= "0.0.1"

import math
from bmath import Vector
from CNC import CNC,Block
from ToolsPage import Plugin
from fractions import gcd
Expand Down
2 changes: 0 additions & 2 deletions plugins/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
__name__ = "Text"
__version__ = "0.0.1"

import math
from bmath import Vector
from CNC import CNC,Block
from ToolsPage import Plugin

Expand Down

0 comments on commit 3a72ab9

Please sign in to comment.