[Python-checkins] r66771 - python/trunk/Lib/test/test_docxmlrpc.py

hirokazu.yamamoto python-checkins at python.org
Sat Oct 4 09:33:21 CEST 2008


Author: hirokazu.yamamoto
Date: Fri Oct  3 18:18:42 2008
New Revision: 66771

Log:
Fixed following error when DocXMLRPCServer failed.
  UnboundLocalError: local variable 'serv' referenced before assignment

Modified:
   python/trunk/Lib/test/test_docxmlrpc.py

Modified: python/trunk/Lib/test/test_docxmlrpc.py
==============================================================================
--- python/trunk/Lib/test/test_docxmlrpc.py	(original)
+++ python/trunk/Lib/test/test_docxmlrpc.py	Fri Oct  3 18:18:42 2008
@@ -9,9 +9,9 @@
 PORT = None
 
 def server(evt, numrequests):
-    try:
-        serv = DocXMLRPCServer(("localhost", 0), logRequests=False)
+    serv = DocXMLRPCServer(("localhost", 0), logRequests=False)
 
+    try:
         global PORT
         PORT = serv.socket.getsockname()[1]
 


More information about the Python-checkins mailing list