diff options
author | Jaime van Kessel <nallath@gmail.com> | 2018-06-29 10:25:38 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2018-06-29 10:25:38 +0300 |
commit | b4f59a78226f83e2935cc06a82230d7f242e4613 (patch) | |
tree | 793f646e1cff889dc4062acaae341433716ec33b /plugins/GCodeGzReader | |
parent | 2b83af24977f36af32d7dcff6641d1e63493244a (diff) |
Removed unneeded application reference in construction of meshreaders
Diffstat (limited to 'plugins/GCodeGzReader')
-rw-r--r-- | plugins/GCodeGzReader/GCodeGzReader.py | 5 | ||||
-rw-r--r-- | plugins/GCodeGzReader/__init__.py | 3 |
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()} |