hplip-3.16.9-hpps-indent.patch 980 B

1234567891011121314151617181920212223242526272829
  1. From 7f507fcb139f19501d4f706098f24abc0be2d721 Mon Sep 17 00:00:00 2001
  2. From: Didier Raboud <odyx@debian.org>
  3. Date: Thu, 1 Sep 2016 11:18:27 +0200
  4. Subject: Fix erroneous tabs in hpps python code, introduced in 3.16.8
  5. ---
  6. prnt/filters/hpps | 6 +++---
  7. 1 file changed, 3 insertions(+), 3 deletions(-)
  8. diff --git a/prnt/filters/hpps b/prnt/filters/hpps
  9. index a882f85..e5f900c 100644
  10. --- a/prnt/filters/hpps
  11. +++ b/prnt/filters/hpps
  12. @@ -191,11 +191,11 @@ if 'HPPinPrnt' in options and 'noHPPinPrnt' not in options:
  13. msg("Setting Pin to default")
  14. else:
  15. szKeyInitials = ['HPFIDigit', 'HPSEDigit', 'HPTHDigit', 'HPFTDigit']
  16. - for x in szKeyInitials:
  17. + for x in szKeyInitials:
  18. try:
  19. - secpin += opts[x]
  20. + secpin += opts[x]
  21. except KeyError:
  22. - secpin += '0'
  23. + secpin += '0'
  24. os.write(output_fd, to_bytes_utf8('@PJL SET HOLDKEY="%s"\x0a' % secpin))