~ubuntu-branches/ubuntu/lucid/python2.6/lucid

« back to all changes in this revision

Viewing changes to Lib/nntplib.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-10-03 12:03:05 UTC
  • mto: (10.1.5 experimental)
  • mto: This revision was merged to the branch mainline in revision 32.
  • Revision ID: james.westby@ubuntu.com-20091003120305-hij6yssh0figh590
Tags: upstream-2.6.3
ImportĀ upstreamĀ versionĀ 2.6.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
        """
110
110
        self.host = host
111
111
        self.port = port
112
 
        self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
113
 
        self.sock.connect((self.host, self.port))
 
112
        self.sock = socket.create_connection((host, port))
114
113
        self.file = self.sock.makefile('rb')
115
114
        self.debugging = 0
116
115
        self.welcome = self.getresp()