zprinter.py
def _get_width(self, binary_data_row):
        """
        Try to determine the width of the binary image.

        The image will be managed to ensure it has a valid integer
        number of bytes, so the length must be divisible by 8.
        """
        row_length = len(binary_data_row.replace("\x0D", "").replace("\x0A", ""))
        r = row_length % 8
        if r != 0:
            row_length += 8 - r

        return(row_length)

        Try to determine the width of the binary image.

        The image will be managed to ensure it has a valid integer
        number of bytes, so the length must be divisible by 8.
        
Try to determine the width of the binary image.
The image will be managed to ensure it has a valid integer
number of bytes, so the length must be divisible by 8.
Try to determine the width of the binary image . The image will be managed to ensure it has a valid integer number of bytes so the length must be divisible by 8 .
def _get_width(self, binary_data_row):
        row_length = len(binary_data_row.replace("\x0D", "").replace("\x0A", ""))
        r = row_length % 8
        if r != 0:
            row_length += 8 - r
        return(row_length)
def _get_width ( self , binary_data_row ) : row_length = len ( binary_data_row . replace ( "\x0D" , "" ) . replace ( "\x0A" , "" ) ) r = row_length % 8 if r != 0 : row_length += 8 - r return ( row_length )
Try to determine the width of the binary image.
Try to determine the width of the binary image .
"""
        Try to determine the width of the binary image.

        The image will be managed to ensure it has a valid integer
        number of bytes, so the length must be divisible by 8.
        """
self
binary_data_row