This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to annotated tag 0.1.4.0
in repository x2goclient.

commit c76c65322810ca5bafdccfab94b9bb0df0503722
Author: Mike Gabriel <mike.gabr...@das-netzwerkteam.de>
Date:   Tue May 17 10:06:34 2011 +0200

    work-around for Python bug http://bugs.python.org/issue11236
---
 pyhoca/cli/frontend.py | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/pyhoca/cli/frontend.py b/pyhoca/cli/frontend.py
index 3b1a964f..3d28eb10 100644
--- a/pyhoca/cli/frontend.py
+++ b/pyhoca/cli/frontend.py
@@ -264,6 +264,15 @@ class PyHocaCLI(x2go.X2goClient):
                 except x2go.SSHException, e:
                     self._runtime_error(str(e), exitcode=253)
 
+                # workaround for Python bug: http://bugs.python.org/issue11236
+                try:
+                    if '\x03' in self.args.password:
+                        raise KeyboardInterrupt()
+                except KeyboardInterrupt:
+                    self._runtime_error('Authentication cancelled by user by 
hitting Ctrl-C at password prompt.', exitcode=-200)
+
+
+
         except socket.error, e:
             self._runtime_error('a socket error occured while establishing the 
connection: %s' % str(e), exitcode=-245)
 

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on 
/srv/git/code.x2go.org/x2goclient.git
_______________________________________________
x2go-commits mailing list
x2go-commits@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-commits

Reply via email to