[Inteproxy-commits] r35 - trunk

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Apr 5 17:28:33 CEST 2007


Author: bh
Date: 2007-04-05 17:28:33 +0200 (Thu, 05 Apr 2007)
New Revision: 35

Modified:
   trunk/ChangeLog
   trunk/transcoder.py
Log:
* transcoder.py (IdentityTranscoder): Turn it into a new-style
class
(HTTPSTranscoder.__init__): Use super to call the base class
constructor


Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2007-04-05 15:19:32 UTC (rev 34)
+++ trunk/ChangeLog	2007-04-05 15:28:33 UTC (rev 35)
@@ -1,5 +1,12 @@
 2007-04-05  Bernhard Herzog  <bh at intevation.de>
 
+	* transcoder.py (IdentityTranscoder): Turn it into a new-style
+	class
+	(HTTPSTranscoder.__init__): Use super to call the base class
+	constructor
+
+2007-04-05  Bernhard Herzog  <bh at intevation.de>
+
 	* transcoder.py (IdentityTranscoder): Fix doc-string
 
 2007-04-05  Bernhard Herzog  <bh at intevation.de>

Modified: trunk/transcoder.py
===================================================================
--- trunk/transcoder.py	2007-04-05 15:19:32 UTC (rev 34)
+++ trunk/transcoder.py	2007-04-05 15:28:33 UTC (rev 35)
@@ -17,7 +17,7 @@
 import getpassword
 
 
-class IdentityTranscoder:
+class IdentityTranscoder(object):
 
     """A transcoder that does not change anything
 
@@ -74,7 +74,7 @@
     """Transcoder that turns the URL unconditionally into a HTTPS URL"""
 
     def __init__(self, method, spliturl):
-        IdentityTranscoder.__init__(self, method, ("https",) + spliturl[1:])
+        super(HTTPSTranscoder, self).__init__(method, ("https",) + spliturl[1:])
 
 
 class OWSProxyGETTranscoder(HTTPSTranscoder):



More information about the Inteproxy-commits mailing list