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:
authorDiego Prado Gesto <d.pradogesto@ultimaker.com>2018-05-23 18:17:41 +0300
committerDiego Prado Gesto <d.pradogesto@ultimaker.com>2018-05-23 18:17:41 +0300
commitddd7b056f387c9bb1a68e4952deac5b783ef723e (patch)
tree3f2f65e8390348685d23ad34cc0c95efb7bff6d9 /plugins/GCodeGzReader/GCodeGzReader.py
parent39768e29cc10e09c1eb3fbb304739b1d4ef162ca (diff)
CURA-5164 Make the mesh readers compliant with the new signature of the mesh reader. Also adapt the tests.
Diffstat (limited to 'plugins/GCodeGzReader/GCodeGzReader.py')
-rw-r--r--plugins/GCodeGzReader/GCodeGzReader.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/GCodeGzReader/GCodeGzReader.py b/plugins/GCodeGzReader/GCodeGzReader.py
index 86c0af89a2..7a6a76d4a5 100644
--- a/plugins/GCodeGzReader/GCodeGzReader.py
+++ b/plugins/GCodeGzReader/GCodeGzReader.py
@@ -12,11 +12,11 @@ from UM.PluginRegistry import PluginRegistry
# If you're zipping g-code, you might as well use gzip!
class GCodeGzReader(MeshReader):
- def __init__(self):
- super().__init__()
+ def __init__(self, application):
+ super().__init__(application)
self._supported_extensions = [".gcode.gz"]
- def read(self, file_name):
+ def _read(self, file_name):
with open(file_name, "rb") as file:
file_data = file.read()
uncompressed_gcode = gzip.decompress(file_data).decode("utf-8")