Commits

ai0867 committed fafc8ce Draft

Use __import__ instead of importlib for python2.6 compatibility.

  • Participants
  • Parent commits 18ccf50

Comments (0)

Files changed (1)

irc/connection.py

 from __future__ import absolute_import
 
 import socket
-import importlib
 
 identity = lambda x: x
 
         if localaddress or localport:
             self.bind_address = (localaddress, localport)
         if ssl:
-            ssl_mod = importlib.importmodule('ssl')
+            ssl_mod = __import__('ssl')
             self.wrapper = ssl_mod.wrap_socket
         if ipv6:
             self.family = socket.AF_INET6