Commits

Anonymous committed 58c2160

fall back on legacy `base64` interface on Python < 2.4

Comments (0)

Files changed (1)

trac/web/standalone.py

 from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
 
 try:
-    from base64 import b64decode # 2.4.1
+    from base64 import b64decode
 except ImportError:
-    pass
+    from base64 import decodestring as b64decode
 
 
 class BasicAuth: