@@ -185,7 +185,7 @@ def update(self, set_cookie=False, expire=None):
185185
186186 if 'set_cookie' is True, set cookie with 'expire' seconds lifetime
187187 if 'expire' is None - session will be closed with the browser
188-
188+
189189 XXX the session can be purged within a week even if a cookie
190190 lifetime is longer
191191 """
@@ -215,7 +215,7 @@ class Client:
215215
216216 During the processing of a request, the following attributes are used:
217217
218- - "db"
218+ - "db"
219219 - "error_message" holds a list of error messages
220220 - "ok_message" holds a list of OK messages
221221 - "session" is deprecated in favor of session_api (XXX remove)
@@ -398,7 +398,7 @@ def handle_xmlrpc(self):
398398 self .setHeader ("Content-Type" , "text/xml" )
399399 self .setHeader ("Content-Length" , str (len (output )))
400400 self .write (output )
401-
401+
402402 def inner_main (self ):
403403 """Process a request.
404404
@@ -797,7 +797,7 @@ def opendb(self, username):
797797 # The old session API refers to the closed database;
798798 # we can no longer use it.
799799 self .session_api = Session (self )
800-
800+
801801
802802 def determine_context (self , dre = re .compile (r'([^\d]+)0*(\d+)' )):
803803 """Determine the context of this page from the URL:
@@ -917,7 +917,7 @@ def serve_file(self, designator, dre=re.compile(r'([^\d]+)(\d+)')):
917917 except KeyError :
918918 # The classname was not valid.
919919 raise NotFound (str (designator ))
920-
920+
921921 # perform the Anonymous user access check
922922 self .check_anonymous_access ()
923923
@@ -968,7 +968,7 @@ def serve_file(self, designator, dre=re.compile(r'([^\d]+)(\d+)')):
968968 pass
969969 if not filename :
970970 content = klass .get (nodeid , 'content' )
971-
971+
972972 lmt = klass .get (nodeid , 'activity' ).timestamp ()
973973
974974 self ._serve_file (lmt , mime_type , content , filename )
@@ -1050,10 +1050,10 @@ def send_error_to_admin(self, subject, html, txt):
10501050 part = MIMEText (txt )
10511051 message .attach (part )
10521052 self .mailer .smtp_send (to , message .as_string ())
1053-
1053+
10541054 def renderFrontPage (self , message ):
10551055 """Return the front page of the tracker."""
1056-
1056+
10571057 self .classname = self .nodeid = None
10581058 self .template = ''
10591059 self .error_message .append (message )
@@ -1271,7 +1271,7 @@ def http_split(self, content):
12711271 elements = [self .http_strip (e ) for e in elements ]
12721272 # Remove any now-empty elements.
12731273 return [e for e in elements if e ]
1274-
1274+
12751275 def handle_range_header (self , length , etag ):
12761276 """Handle the 'Range' and 'If-Range' headers.
12771277
@@ -1308,7 +1308,7 @@ def handle_range_header(self, length, etag):
13081308 if_range = self .env .get ("HTTP_IF_RANGE" )
13091309 if if_range :
13101310 # The grammar for the If-Range header is:
1311- #
1311+ #
13121312 # If-Range = "If-Range" ":" ( entity-tag | HTTP-date )
13131313 # entity-tag = [ weak ] opaque-tag
13141314 # weak = "W/"
@@ -1413,7 +1413,7 @@ def write_file(self, filename):
14131413 length = stat_info [stat .ST_SIZE ]
14141414 # Assume we will return the entire file.
14151415 offset = 0
1416- # If the headers have not already been finalized,
1416+ # If the headers have not already been finalized,
14171417 if not self .headers_done :
14181418 # RFC 2616 14.19: ETag
14191419 #
0 commit comments