--- src/zope/browserresource/file.py.orig 2009-08-25 05:54:46 UTC +++ src/zope/browserresource/file.py @@ -164,14 +164,14 @@ class FileResource(BrowserView, Resource): # understand the screwy date string as a lucky side effect # of the way they parse it). try: - mod_since = long(mktime_tz(parsedate_tz(header))) + mod_since = int(mktime_tz(parsedate_tz(header))) except: mod_since = None if mod_since is not None: if getattr(file, 'lmt', None): - last_mod = long(file.lmt) + last_mod = int(file.lmt) else: - last_mod = 0L + last_mod = 0 if last_mod > 0 and last_mod <= mod_since: response.setStatus(304) return ''