We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b5da56 commit 47affe6Copy full SHA for 47affe6
src/backurne/config.py
@@ -1,6 +1,6 @@
1
import collections
2
import os
3
-import imp
+import types
4
5
6
# Random code from https://gist.github.com/angstwad/bf22d1822c38a92ec0a9
@@ -53,7 +53,7 @@ def load_config():
53
},
54
}
55
56
- custom = imp.new_module('custom')
+ custom = types.ModuleType('custom')
57
try:
58
exec(open('/etc/backurne/backurne.conf', 'r').read(), custom.__dict__)
59
except FileNotFoundError:
0 commit comments