Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2018-06-29 10:25:38 +0300
committerJaime van Kessel <nallath@gmail.com>2018-06-29 10:25:38 +0300
commitb4f59a78226f83e2935cc06a82230d7f242e4613 (patch)
tree793f646e1cff889dc4062acaae341433716ec33b /plugins/GCodeGzReader
parent2b83af24977f36af32d7dcff6641d1e63493244a (diff)
Removed unneeded application reference in construction of meshreaders
Diffstat (limited to 'plugins/GCodeGzReader')
-rw-r--r--plugins/GCodeGzReader/GCodeGzReader.py5
-rw-r--r--plugins/GCodeGzReader/__init__.py3
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/GCodeGzReader/GCodeGzReader.py b/plugins/GCodeGzReader/GCodeGzReader.py
index 7a6a76d4a5..73a08075d2 100644
--- a/plugins/GCodeGzReader/GCodeGzReader.py
+++ b/plugins/GCodeGzReader/GCodeGzReader.py
@@ -11,9 +11,8 @@ from UM.PluginRegistry import PluginRegistry
#
# If you're zipping g-code, you might as well use gzip!
class GCodeGzReader(MeshReader):
-
- def __init__(self, application):
- super().__init__(application)
+ def __init__(self) -> None:
+ super().__init__()
self._supported_extensions = [".gcode.gz"]
def _read(self, file_name):
diff --git a/plugins/GCodeGzReader/__init__.py b/plugins/GCodeGzReader/__init__.py
index e6bae6615e..3d7ae85d30 100644
--- a/plugins/GCodeGzReader/__init__.py
+++ b/plugins/GCodeGzReader/__init__.py
@@ -19,6 +19,7 @@ def getMetaData():
]
}
+
def register(app):
app.addNonSliceableExtension(".gz")
- return { "mesh_reader": GCodeGzReader.GCodeGzReader(app) }
+ return {"mesh_reader": GCodeGzReader.GCodeGzReader()}