~pythonregexp2.7/python/issue2636-09-01+10

« back to all changes in this revision

Viewing changes to Doc/library/xmlrpclib.rst

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-09-22 21:39:45 UTC
  • mfrom: (39055.1.33 Regexp-2.7)
  • Revision ID: darklord@timehorse.com-20080922213945-23717m5eiqpamcyn
Merged in changes from the Single-Loop Engine branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
379
379
   try:
380
380
       proxy.add(2, 5)
381
381
   except xmlrpclib.Fault, err:
382
 
       print "A fault occured"
 
382
       print "A fault occurred"
383
383
       print "Fault code: %d" % err.faultCode
384
384
       print "Fault string: %s" % err.faultString
385
385
 
426
426
   try:
427
427
       proxy.some_method()
428
428
   except xmlrpclib.ProtocolError, err:
429
 
       print "A protocol error occured"
 
429
       print "A protocol error occurred"
430
430
       print "URL: %s" % err.url
431
431
       print "HTTP/HTTPS headers: %s" % err.headers
432
432
       print "Error code: %d" % err.errcode