Gentoo Archives: gentoo-commits

From: Antanas Ursulis <antanas.ursulis@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/log-analysis:master commit in: /
Date: Mon, 29 Jul 2013 16:08:29
Message-Id: 1375114039.7f8c730c7fc129cd58c6f7607ad032ac8f11e9f6.uranium@gentoo
1 commit: 7f8c730c7fc129cd58c6f7607ad032ac8f11e9f6
2 Author: Antanas Uršulis <antanas.ursulis <AT> gmail <DOT> com>
3 AuthorDate: Mon Jul 29 16:07:19 2013 +0000
4 Commit: Antanas Ursulis <antanas.ursulis <AT> gmail <DOT> com>
5 CommitDate: Mon Jul 29 16:07:19 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/log-analysis.git;a=commit;h=7f8c730c
7
8 More basename() defensiveness
9
10 ---
11 storage.py | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14 diff --git a/storage.py b/storage.py
15 index 847806f..fda6c35 100644
16 --- a/storage.py
17 +++ b/storage.py
18 @@ -18,6 +18,6 @@ class FilesystemStorage:
19 except OSError:
20 pass # TODO: proper handling
21
22 - path = os.path.join(self.root, source, filename) # TODO: consider adding in date at some point
23 + path = os.path.join(self.root, source, os.path.basename(filename)) # TODO: consider adding in date at some point
24 with open(path, 'wb') as f:
25 f.write(data)