From bf532394ae2ae47d088cb784ab7149f47309e2da Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 20 Feb 2014 11:16:21 -0800 Subject: [PATCH] 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 --- package_cache/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.26.2