Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/p2p/MostlyReliablePipe.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2006-05-31 22:01:24 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2006-05-31 22:01:24 (GMT)
commitf96fbfc10b1db374c1ce3ec7cf727711c5161bf1 (patch)
tree75bf4b1bfc309562f841c20318c23b9da3557c3e /sugar/p2p/MostlyReliablePipe.py
parentb4ebdfa5af05da701eee3a68b89ee77dc47b002f (diff)
Split up the browser, some cleanups and
Diffstat (limited to 'sugar/p2p/MostlyReliablePipe.py')
-rw-r--r--sugar/p2p/MostlyReliablePipe.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/sugar/p2p/MostlyReliablePipe.py b/sugar/p2p/MostlyReliablePipe.py
index f63a8b1..5aee04c 100644
--- a/sugar/p2p/MostlyReliablePipe.py
+++ b/sugar/p2p/MostlyReliablePipe.py
@@ -1,3 +1,7 @@
+# FIXME tests use initialized variables, any better
+# what to shut up pylint for those?
+# pylint: disable-msg = W0612
+
import socket
import time
import sha
@@ -11,9 +15,9 @@ pygtk.require('2.0')
import gtk, gobject
-def _stringify_sha(sha):
+def _stringify_sha(sha_hash):
print_sha = ""
- for char in sha:
+ for char in sha_hash:
print_sha = print_sha + binascii.b2a_hex(char)
return print_sha
@@ -1089,7 +1093,7 @@ franker, more natural, as it were -- she really must exclude me from privileges
try:
gtk.main()
except KeyboardInterrupt:
- pass
+ print 'Ctrl+C pressed, exiting...'
if __name__ == "__main__":