Skip to content

Commit

Permalink
Remove dead initLabel call.
Browse files Browse the repository at this point in the history
Invoking it causes a timeout.
  • Loading branch information
maresb committed Nov 5, 2023
1 parent 98e8743 commit 08517ba
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/dymoprint/labeler.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,13 @@ def skipLines(self, value):
self.buildCommand(cmd)

def initLabel(self):
"""Set the label initialization sequence. (MLF)"""
"""Set the label initialization sequence. (MLF)
This was in the original dymoprint by S. Bronner but was never invoked.
(There was a self.initLabel without parentheses.)
I see no mention of it in the technical reference, so this seems to be
dead code.
"""

cmd = [0x00] * 8
self.buildCommand(cmd)
Expand Down Expand Up @@ -218,7 +224,6 @@ def rawPrintLabel(self, lines: List[List[int]], margin_px=DEFAULT_MARGIN_PX):
while len(line) > 0 and line[-1] == 0:
del line[-1]

self.initLabel
self.tapeColor(0)
self.dotTab(dottab)
for line in lines:
Expand Down

0 comments on commit 08517ba

Please sign in to comment.