From: W. Trevor King Date: Thu, 20 Feb 2014 19:14:54 +0000 (-0800) Subject: server: Don't use a keyword for the path argument to getsize X-Git-Tag: v0.1~26 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ad73e70aa784d8cc9f750a29cf7942cb303347a6;p=package-cache.git 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 --- 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