gcode: Move definition of CommandError and Coord from homing.py to gcode.py

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2021-01-08 12:07:45 -05:00
parent c8434ec54b
commit ea85d419de
6 changed files with 24 additions and 28 deletions

View file

@ -3,13 +3,8 @@
# Copyright (C) 2020 Eric Callahan <arksine.code@gmail.com>
#
# This file may be distributed under the terms of the GNU GPLv3 license
import logging
import socket
import os
import sys
import errno
import json
import homing
import logging, socket, os, sys, errno, json
import gcode
# Json decodes strings as unicode types in Python 2.x. This doesn't
# play well with some parts of Klipper (particuarly displays), so we
@ -27,7 +22,7 @@ def byteify(data, ignore_dicts=False):
for k, v in data.items()}
return data
class WebRequestError(homing.CommandError):
class WebRequestError(gcode.CommandError):
def __init__(self, message,):
Exception.__init__(self, message)