#76 Make testcloud compatible with future Python 3.10
Merged 3 years ago by frantisekz. Opened 3 years ago by frantisekz.

file modified
+2 -2
@@ -4,7 +4,7 @@ 

  # See the LICENSE file for more details on Licensing

  

  import os

- import imp

+ import types

  

  import testcloud

  
@@ -72,7 +72,7 @@ 

      :return: object containing configuration values

      '''

  

-     new_conf = imp.new_module('config')

+     new_conf = types.ModuleType('config')

      new_conf.__file__ = conf_filename

      try:

          with open(conf_filename, 'r') as conf_file:

Pull-Request has been merged by frantisekz

3 years ago
Metadata