From ad73e70aa784d8cc9f750a29cf7942cb303347a6 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 20 Feb 2014 11:14:54 -0800 Subject: [PATCH] server: Don't use a keyword for the path argument to getsize Despite being documented as path [1], using a keyword argument raises a TypeError: TypeError: getsize() got an unexpected keyword argument 'path' [1]: http://docs.python.org/3/library/os.path.html#os.path.getsize --- 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 5853f14..3f876e9 100644 --- a/package_cache/server.py +++ b/package_cache/server.py @@ -66,7 +66,7 @@ class Server (object): Content-Length: https://tools.ietf.org/html/rfc2616#section-14.13 """ - return str(_os.path.getsize(path=path)) + return str(_os.path.getsize(path)) def _get_content_type(self, path): """Content-Type value per RFC 2616 -- 2.26.2