File: GCodeGzFile.py

package info (click to toggle)
libcharon 5.0.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 576 kB
  • sloc: python: 1,575; sh: 388; makefile: 3
file content (13 lines) | stat: -rw-r--r-- 320 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Copyright (c) 2018 Ultimaker B.V.
# libCharon is released under the terms of the LGPLv3 or higher.
import gzip

from Charon.filetypes.GCodeFile import GCodeFile


class GCodeGzFile(GCodeFile):
    stream_handler = gzip.open
    mime_type = "text/x-gcode-gz"

    def __init__(self) -> None:
        super().__init__()