Remove a number of unused imports

This commit is contained in:
Jaime van Kessel 2020-04-10 13:58:10 +02:00
parent fe27da5e8a
commit 2e9dca71ce
No known key found for this signature in database
GPG key ID: 3710727397403C91
18 changed files with 10 additions and 26 deletions

View file

@ -9,7 +9,7 @@ from UM.Version import Version
import urllib.request
from urllib.error import URLError
from typing import Dict, Optional
from typing import Dict
import ssl
import certifi

View file

@ -10,10 +10,10 @@ WARNING This script has never been tested with several extruders
from ..Script import Script
import numpy as np
from UM.Logger import Logger
from UM.Application import Application
import re
from cura.Settings.ExtruderManager import ExtruderManager
def _getValue(line, key, default=None):
"""
Convenience function that finds the value in a line of g-code.
@ -30,6 +30,7 @@ def _getValue(line, key, default=None):
return default
return float(number.group(0))
class GCodeStep():
"""
Class to store the current value of each G_Code parameter
@ -85,7 +86,7 @@ class GCodeStep():
# Execution part of the stretch plugin
class Stretcher():
class Stretcher:
"""
Execution part of the stretch algorithm
"""
@ -207,7 +208,6 @@ class Stretcher():
return False
return True # New sequence
def processLayer(self, layer_steps):
"""
Computes the new coordinates of g-code steps
@ -291,7 +291,6 @@ class Stretcher():
else:
self.layergcode = self.layergcode + layer_steps[i].comment + "\n"
def workOnSequence(self, orig_seq, modif_seq):
"""
Computes new coordinates for a sequence

View file

@ -6,7 +6,6 @@ from PyQt5.QtNetwork import QNetworkReply, QNetworkRequest
from UM.Job import Job
from UM.Logger import Logger
from UM.Settings import ContainerRegistry
from cura.CuraApplication import CuraApplication
from ..Models.Http.ClusterMaterial import ClusterMaterial

View file

@ -5,7 +5,6 @@ import copy
import io
import json #To parse the product-to-id mapping file.
import os.path #To find the product-to-id mapping.
import sys
from typing import Any, Dict, List, Optional, Tuple, cast, Set, Union
import xml.etree.ElementTree as ET
@ -18,7 +17,6 @@ from UM.Settings.ContainerRegistry import ContainerRegistry
from UM.ConfigurationErrorMessage import ConfigurationErrorMessage
from cura.CuraApplication import CuraApplication
from cura.Machines.ContainerTree import ContainerTree
from cura.Machines.VariantType import VariantType
try:

View file

@ -1,6 +1,4 @@
from unittest.mock import patch, MagicMock
import sys
import os
# Prevents error: "PyCapsule_GetPointer called with incorrect name" with conflicting SIP configurations between Arcus and PyQt: Import Arcus and Savitar first!
import Savitar # Dont remove this line