[Zope3-checkins] CVS: Zope3/src/zope/publisher - http.py:1.37
Jeremy Hylton
cvs-admin at zope.org
Mon Nov 3 23:04:53 EST 2003
Update of /cvs-repository/Zope3/src/zope/publisher
In directory cvs.zope.org:/tmp/cvs-serv28992/src/zope/publisher
Modified Files:
http.py
Log Message:
Fix various import issues.
Some names where from imported twice.
Other imports were unused.
Often imports were in partly random order, making them harder to read.
=== Zope3/src/zope/publisher/http.py 1.36 => 1.37 ===
--- Zope3/src/zope/publisher/http.py:1.36 Mon Nov 3 16:37:50 2003
+++ Zope3/src/zope/publisher/http.py Mon Nov 3 23:04:22 2003
@@ -487,12 +487,12 @@
def _authUserPW(self):
'See IHTTPCredentials'
global base64
- auth=self._auth
- if auth:
- if auth.lower().startswith('basic '):
- if base64 is None: import base64
+ if self._auth:
+ if self._auth.lower().startswith('basic '):
+ if base64 is None:
+ import base64
name, password = base64.decodestring(
- auth.split()[-1]).split(':')
+ self._auth.split()[-1]).split(':')
return name, password
def unauthorized(self, challenge):
More information about the Zope3-Checkins
mailing list