Skip to content

Commit 47affe6

Browse files
committed
support python3.12+
Signed-off-by: Alexandre Bruyelles <jack@jack.fr.eu.org>
1 parent 3b5da56 commit 47affe6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backurne/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import collections
22
import os
3-
import imp
3+
import types
44

55

66
# Random code from https://gist.github.com/angstwad/bf22d1822c38a92ec0a9
@@ -53,7 +53,7 @@ def load_config():
5353
},
5454
}
5555

56-
custom = imp.new_module('custom')
56+
custom = types.ModuleType('custom')
5757
try:
5858
exec(open('/etc/backurne/backurne.conf', 'r').read(), custom.__dict__)
5959
except FileNotFoundError:

0 commit comments

Comments
 (0)