mirror of
https://abf.rosa.ru/djam/hplip.git
synced 2025-02-23 16:32:58 +00:00
26 lines
971 B
Diff
26 lines
971 B
Diff
diff -Nuar hplip-3.16.11.orig/prnt/filters/hpps hplip-3.16.11/prnt/filters/hpps
|
|
--- hplip-3.16.11.orig/prnt/filters/hpps 2016-11-23 09:02:55.000000000 +0300
|
|
+++ hplip-3.16.11/prnt/filters/hpps 2017-01-25 11:34:18.354540838 +0300
|
|
@@ -1,4 +1,4 @@
|
|
-#!/usr/bin/env python
|
|
+#!/usr/bin/python3
|
|
# -*- coding: utf-8 -*-
|
|
#
|
|
# (c) Copyright 2003-2015 HP Development Company, L.P.
|
|
@@ -190,12 +190,12 @@
|
|
except KeyError as e:
|
|
msg("Setting Pin to default")
|
|
else:
|
|
- szKeyInitials = ['HPFIDigit', 'HPSEDigit', 'HPTHDigit', 'HPFTDigit']
|
|
- for x in szKeyInitials:
|
|
+ szKeyInitials = ['HPFIDigit', 'HPSEDigit', 'HPTHDigit', 'HPFTDigit']
|
|
+ for x in szKeyInitials:
|
|
try:
|
|
- secpin += opts[x]
|
|
+ secpin += opts[x]
|
|
except KeyError:
|
|
- secpin += '0'
|
|
+ secpin += '0'
|
|
|
|
os.write(output_fd, to_bytes_utf8('@PJL SET HOLDKEY="%s"\x0a' % secpin))
|
|
|