projects
/
package-cache.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e81ad59
)
server: Don't use a keyword for the path argument to makedirs
author
W. Trevor King
<wking@tremily.us>
Thu, 20 Feb 2014 19:05:34 +0000
(11:05 -0800)
committer
W. Trevor King
<wking@tremily.us>
Thu, 20 Feb 2014 19:23:43 +0000
(11:23 -0800)
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
package_cache/server.py
patch
|
blob
|
history
diff --git
a/package_cache/server.py
b/package_cache/server.py
index 4f1e6b09a79b3eee0dfabafa33862dad10a5c4d7..4cb6597e19eee05d4023040da3a69b0bb3a59621 100644
(file)
--- 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: