diff --git a/.gitignore b/.gitignore index d24bebabc..a23c3406c 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,4 @@ book.tex upload.sh changes.txt *.swp +testdata* diff --git a/examples/Python/asyncrrhandlers.py b/examples/Python/asyncrrhandlers.py index d61331480..8ec1da454 100644 --- a/examples/Python/asyncrrhandlers.py +++ b/examples/Python/asyncrrhandlers.py @@ -171,4 +171,3 @@ def main(): if __name__ == "__main__": main() - diff --git a/examples/Python/clonecli3_py3.py b/examples/Python/clonecli3_py3.py index cdba6b0ab..6ff376eb1 100644 --- a/examples/Python/clonecli3_py3.py +++ b/examples/Python/clonecli3_py3.py @@ -1,4 +1,4 @@ -# coding=utf-8 +# coding=utf-8 """ Clone client Model Three Author: Min RK >", file=sys.stderr) # --------------------------------------------------------------------- diff --git a/examples/Python/peering2.py b/examples/Python/peering2.py index 5678dc02e..6da695e60 100644 --- a/examples/Python/peering2.py +++ b/examples/Python/peering2.py @@ -88,8 +88,8 @@ def main(myself, peers): for peer in peers: tprint("I: connecting to cloud frontend at %s" % peer) cloudbe.connect("ipc://%s-cloud.ipc" % peer) - - + + if not isinstance(peers[0], bytes): peers = [peer.encode('ascii') for peer in peers] diff --git a/examples/Python/rtreq.py b/examples/Python/rtreq.py index a7acf28f8..4d2f137ee 100644 --- a/examples/Python/rtreq.py +++ b/examples/Python/rtreq.py @@ -51,7 +51,7 @@ def worker_thread(context=None): for _ in range(NBR_WORKERS * 10): # LRU worker is next waiting in the queue address, empty, ready = client.recv_multipart() - + client.send_multipart([ address, b'', @@ -66,4 +66,3 @@ def worker_thread(context=None): b'', b'END', ]) - diff --git a/examples/Python/udplib.py b/examples/Python/udplib.py index 30a8a7136..d7b07197b 100644 --- a/examples/Python/udplib.py +++ b/examples/Python/udplib.py @@ -38,4 +38,3 @@ def recv(self, n): if addrinfo[0] != self.address: print("Found peer %s:%d" % addrinfo) return buf - diff --git a/examples/Python/udpping3.py b/examples/Python/udpping3.py index 3e08b1401..0d37b94ac 100644 --- a/examples/Python/udpping3.py +++ b/examples/Python/udpping3.py @@ -15,4 +15,4 @@ def main(): interface.stop() if __name__ == '__main__': - main() \ No newline at end of file + main()