Bind to loopback interface by default
[mudpy.git] / mudpy / daemon.py
index 2413204..974f5e4 100644 (file)
@@ -1,9 +1,9 @@
-# Copyright (c) 2004-2016 Jeremy Stanley <fungi@yuggoth.org>. Permission
-# to use, copy, modify, and distribute this software is granted under
-# terms provided in the LICENSE file distributed with this software.
+# Copyright (c) 2004-2018 mudpy authors. Permission to use, copy,
+# modify, and distribute this software is granted under terms
+# provided in the LICENSE file distributed with this software.
 
 # core objects for the mudpy engine
-import imp
+import importlib
 import sys
 
 import mudpy
@@ -21,7 +21,7 @@ def main():
 
         # the world was flagged for a reload of all code/data
         if mudpy.misc.universe.reload_flag:
-            imp.reload(mudpy)
+            importlib.reload(mudpy)
             mudpy.misc.reload_data()
             mudpy.misc.universe.reload_flag = False