Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(249)  |  Call(193)  |  Derive(0)  |  Import(56)
Simple class to print some variables in stdout/stderr.

src/c/r/crossmess-HEAD/msnp/Network.py   CrossMess(Download)
#  Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 
 
from Debug import Debug as debug
 
import socket
 
        if self.sockfd is not None:
            debug("Socket file descriptor: #%d" % self.sockfd.fileno(), 3)
 
    def connect(self, host, port):
            try:
                self.sockfd.connect((host, int(port)))
                debug("New socket file descriptor: #%d" % self.sockfd.fileno(), 3)
 
            except socket.error, e:
                debug("Error: Network.__init__(): %s" % e[1], 2)
        """
 
        debug("Close socket file descriptor: #%d" % sockfd.fileno(), 3)
        sockfd.close()
        self.sockfd = None

src/c/r/crossmess-HEAD/msnp/Soap.py   CrossMess(Download)
#  Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
 
from Debug import Debug as debug
 
import httplib
 
        #httplib.HTTPConnection.debuglevel = 1
        debug("PASSPORT REQUEST", 3)
        request = httplib.HTTPS("loginnet.passport.com")
        request.putrequest("POST", "/RST.srf")
 
#        httplib.HTTPConnection.debuglevel = 1
        debug("SSO REQUEST", 3)
        request = httplib.HTTPS("loginnet.passport.com")
        request.putrequest("POST", "/RST.srf")
 
	#httplib.HTTPConnection.debuglevel = 1
        debug("MEMBERSHIP REQUEST", 3)
        request = httplib.HTTPS("contacts.msn.com")
        request.putrequest("POST","/abservice/SharingService.asmx")
 
	#httplib.HTTPConnection.debuglevel = 1
        debug("ADDRESS REQUEST", 3)
        request = httplib.HTTPS("contacts.msn.com")
        request.putrequest("POST","/abservice/abservice.asmx")

src/c/r/crossmess-HEAD/msnp/Msnp15.py   CrossMess(Download)
from Network import Network as connection
from Handle import Handle
from Debug import Debug as debug
from Soap import Soap
import Templates
        """
 
        debug("prelude(): Start connection.", 3)
        conn = connection()
        conn.connect(self._host, self._port)

src/b/r/browse-2007-HEAD/modules/browse/State.py   BROWSE(Download)
from JSConfig import JSConfig
from SignatureList import SignatureList
from Debug import Debug
from URLList import URLList
from JSBlockList import JSBlockList
    self.conf=JSConfig(file)
    self.uas=self.conf.getConf("ua")
    self.debug=Debug(self.conf.getConf("debug"))
    #self.readSigfile(self.conf.getConf("sigfilepath"))
    #self.readURLs(self.conf.getConf("URLfilepath"))

src/c/r/crossmess-HEAD/msnp/Handle.py   CrossMess(Download)
#  with CrossMess; if not, write to the Free Software Foundation, Inc., 51
#  Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
from Debug import Debug as debug
 
import md5

src/b/r/browse-2007-HEAD/modules/browse/JSReader.py   BROWSE(Download)
#!/usr/bin/python
from Debug import Debug
#import httplib
import urllib
import re

src/b/r/browse-2007-HEAD/modules/browse/Crawler.py   BROWSE(Download)
from JSBlockList import JSBlockList
from SignatureList import SignatureList
from Debug import Debug
from MyURLOpener import keyboardException
import sys