Commits

Jason R. Coombs  committed f980a96

Use getattr instead of exec - fixes error in Python 3

  • Participants
  • Parent commits 044967c

Comments (0)

Files changed (1)

File keyring/core.py

         module = load_module(keyring_name, sys.path+[keyring_path])
 
     keyring_class = keyring_name.split('.')[-1].strip()
-    exec("keyring_temp = module." + keyring_class + "() ", locals=locals())
+    keyring_temp = getattr(module, keyring_class)()
 
     return keyring_temp