From: W. Trevor King Date: Thu, 20 Feb 2014 19:05:34 +0000 (-0800) Subject: server: Don't use a keyword for the path argument to makedirs X-Git-Tag: v0.1~28 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b0ba3aea15abe2cc5059a9267cada558fe3915af;p=package-cache.git server: Don't use a keyword for the path argument to makedirs Despite being documented as path [1], using a keyword argument raises a TypeError: TypeError: makedirs() got an unexpected keyword argument 'path' [1]: http://docs.python.org/3/library/os.html#os.makedirs --- diff --git a/package_cache/server.py b/package_cache/server.py index 4f1e6b0..4cb6597 100644 --- a/package_cache/server.py +++ b/package_cache/server.py @@ -17,7 +17,7 @@ class Server (object): self.sources = sources self.cache = cache if not _os.path.isdir(self.cache): - _os.makedirs(path=self.cache, exist_ok=True) + _os.makedirs(self.cache, exist_ok=True) def __call__(self, environ, start_response): try: