def line_spacing(self, spacing=None, divisor=<NUM_LIT>):
if spacing is None:<EOL><INDENT>self._raw(LINESPACING_RESET)<EOL>return<EOL><DEDENT>if divisor not in LINESPACING_FUNCS:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if (divisor in [<NUM_LIT>, <NUM_LIT>]<EOL>and (not(<NUM_LIT:0> <= spacing <= <NUM_LIT:255>))):<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if divisor == <NUM_LIT> and (not(<NUM_LIT:0> <= spacing <= <NUM_LIT>)):<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>self._raw(LINESPACING_FUNCS[divisor] + six.int2byte(spacing))<EOL>
Set line character spacing.

        If no spacing is given, we reset it to the default.

        There are different commands for setting the line spacing, using
        a different denominator:

        '+'' line_spacing/360 of an inch, 0 <= line_spacing <= 255
        '3' line_spacing/180 of an inch, 0 <= line_spacing <= 255
        'A' line_spacing/60 of an inch, 0 <= line_spacing <= 85

        Some printers may not support all of them. The most commonly
        available command (using a divisor of 180) is chosen.