Blob Blame History Raw
--- a/iep/yoton/clientserver.py	2014-05-28 12:34:50.000000000 -0700
+++ b/iep/yoton/clientserver.py	2018-08-19 18:53:55.681495806 -0700
@@ -44,7 +44,7 @@
 
 
 class RequestServer(threading.Thread):
-    """ RequestServer(address, async=False, verbose=0)
+    """ RequestServer(address, asynchronous=False, verbose=0)
     
     Setup a simple server that handles requests similar to a telnet server, 
     or asyncore. Starting the server using run() will run the server in
@@ -59,7 +59,7 @@
     ----------
     address : str
         Should be of the shape hostname:port. 
-    async : bool
+    asynchronous : bool
         If True, handles each incoming connection in a separate thread.
         This might be advantageous if a the handle_request() method 
         takes a long time to execute.
@@ -79,11 +79,11 @@
     
     """ 
     
-    def __init__(self, address, async=False, verbose=0):
+    def __init__(self, address, asynchronous=False, verbose=0):
         threading.Thread.__init__(self)
         
         # Store whether to handle requests asynchronously
-        self._async = async
+        self._asynchronous = asynchronous
         
         # Verbosity
         self._verbose = verbose
@@ -157,7 +157,7 @@
                 if self._verbose:
                     print('handling request from: '+str(addr))
                 # Handle request
-                if self._async :
+                if self._asynchronous :
                     rh = SocketHandler(self, s)
                     rh.start()
                 else: