summaryrefslogtreecommitdiffstats
path: root/Lib/xmlrpc
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2013-06-13 00:12:30 (GMT)
committerBrett Cannon <brett@python.org>2013-06-13 00:12:30 (GMT)
commitc9a1bfed5d820b681debca52554fea76ba0a9ae0 (patch)
treeba3c9fd41acbffaa32bf6e09a323471778064be7 /Lib/xmlrpc
parent603dcf27140ca109d11496eb4a57fe6440ddc915 (diff)
downloadcpython-c9a1bfed5d820b681debca52554fea76ba0a9ae0.zip
cpython-c9a1bfed5d820b681debca52554fea76ba0a9ae0.tar.gz
cpython-c9a1bfed5d820b681debca52554fea76ba0a9ae0.tar.bz2
Move test___all__ over to unittest.main() and use ModuleNotFoundError
Diffstat (limited to 'Lib/xmlrpc')
-rw-r--r--Lib/xmlrpc/server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/xmlrpc/server.py b/Lib/xmlrpc/server.py
index 54e1726..80233e4 100644
--- a/Lib/xmlrpc/server.py
+++ b/Lib/xmlrpc/server.py
@@ -116,7 +116,7 @@ import inspect
import traceback
try:
import fcntl
-except ImportError:
+except ModuleNotFoundError:
fcntl = None
def resolve_dotted_attribute(obj, attr, allow_dotted_names=True):