(self)
| 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 | |
| 22 | class CommentError(GcodeError): |