[printrun] Working patch
Miro Hrončok
churchyard at fedoraproject.org
Thu Jun 20 14:32:52 UTC 2013
commit 0c210281d90d610b048090ba333e0c712ce76148
Author: Miro Hrončok <miro at hroncok.cz>
Date: Thu Jun 20 16:32:14 2013 +0200
Working patch
printrun-flush.patch | 18 +++---------------
1 files changed, 3 insertions(+), 15 deletions(-)
---
diff --git a/printrun-flush.patch b/printrun-flush.patch
index 3300753..9afd542 100644
--- a/printrun-flush.patch
+++ b/printrun-flush.patch
@@ -1,25 +1,13 @@
-From f57eb1d4876db59683e396c9077a49224c7ce573 Mon Sep 17 00:00:00 2001
-From: Guillaume Seguin <guillaume at segu.in>
-Date: Thu, 20 Jun 2013 14:30:01 +0200
-Subject: [PATCH] Only flush TCP connections, not serial ones (fix #402)
-
----
- printcore.py | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
diff --git a/printcore.py b/printcore.py
-index 2b74022..d9dafa7 100755
+index f61945e..aaa38a0 100755
--- a/printcore.py
+++ b/printcore.py
-@@ -523,7 +523,7 @@ def _send(self, command, lineno = 0, calcchecksum = False):
+@@ -493,7 +493,7 @@ class printcore():
except: pass
try:
self.printer.write(str(command + "\n"))
- self.printer.flush()
+ if self.printer_tcp: self.printer.flush()
- self.writefailures = 0
except socket.error as e:
print "Can't write to printer (disconnected?) (Socket error {0}): {1}".format(e.errno, e.strerror)
---
-1.8.1.6
-
+ except SerialException as e:
More information about the scm-commits
mailing list