server: Don't use a keyword for the path argument to getmtime
authorW. Trevor King <wking@tremily.us>
Thu, 20 Feb 2014 19:16:21 +0000 (11:16 -0800)
committerW. Trevor King <wking@tremily.us>
Thu, 20 Feb 2014 19:23:44 +0000 (11:23 -0800)
Despite being documented as path [1], using a keyword argument
raises a TypeError:

  TypeError: getmtime() got an unexpected keyword argument 'path'

[1]: http://docs.python.org/3/library/os.path.html#os.path.getmtime

package_cache/server.py

index 3f876e9e3ac3f1ad9db24c552773eebf70bd9cf1..b5a77f0445dccd1aa2ef9ee0980549a427d66790 100644 (file)
@@ -92,6 +92,6 @@ class Server (object):
           https://tools.ietf.org/html/rfc1123#page-55
           https://tools.ietf.org/html/rfc822#section-5
         """
-        mtime = _os.path.getmtime(path=path)
+        mtime = _os.path.getmtime(path)
         return _email_utils.formatdate(
             timeval=mtime, localtime=False, usegmt=True)