From: W. Trevor King Date: Thu, 20 Feb 2014 19:16:21 +0000 (-0800) Subject: server: Don't use a keyword for the path argument to getmtime X-Git-Tag: v0.1~25 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bf532394ae2ae47d088cb784ab7149f47309e2da;p=package-cache.git server: Don't use a keyword for the path argument to getmtime 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 --- diff --git a/package_cache/server.py b/package_cache/server.py index 3f876e9..b5a77f0 100644 --- a/package_cache/server.py +++ b/package_cache/server.py @@ -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)