MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / __str__

Method __str__

src/ext/makerbot_driver/Gcode/errors.py:11–19  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

9 self.values = {}
10
11 def __str__(self):
12 returnStr = ''
13 for key in self.values:
14 v = str(self.values[key])
15 v = v.rstrip(
16 '\n') # Line commands have carriage returns
17 returnStr += key + ': ' + v + '\n'
18 returnStr = returnStr.rstrip('\n') # Remove final semicolon
19 return returnStr
20
21
22class CommentError(GcodeError):

Callers 1

send_packetMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected