Commits

Jason R. Coombs committed ee0c60a

Call the correct method name 'from_legacy_params'. Fixes #6.

  • Participants
  • Parent commits e61f99d

Comments (0)

Files changed (2)

File irc/client.py

             warnings.warn("localaddress, localport, ssl, and ipv6 parameters "
                 "are deprecated. Use connect_factory instead.",
                 DeprecationWarning)
-            connect_factory.use_legacy_params(localaddress, localport, ssl,
+            connect_factory.from_legacy_params(localaddress, localport, ssl,
                 ipv6)
 
         if self.connected:

File irc/tests/test_client.py

 @mock.patch('irc.connection.socket')
 def test_connect_with_legacy_params(socket_mod):
 	server = irc.client.IRC().server()
-	server.connect('foo', 6667, 'bestnick', ssl=True)
-	import pytest; pytest.set_trace()
+	server.connect('foo', 6667, 'bestnick', ipv6=True)