Commits

Anonymous committed 90d8e42

Removed python-2.1 support

Comments (0)

Files changed (1)

cherrypy/_cphttptools.py

                 stat = os.stat(fname)
             except OSError:
                 raise cperror.NotFound
-            if type(stat) == type(()): # Python2.1
-                modifTime = stat[9]
-            else:
-                modifTime = stat.st_mtime
+            modifTime = stat.st_mtime
 
             strModifTime = time.strftime("%a, %d %b %Y %H:%M:%S GMT", time.gmtime(modifTime))