projects
/
igor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0b04e4
)
(formatting) added extra newline
author
Merlijn van Deen (valhallasw)
<valhallasw+prune@gmail.com>
Mon, 26 Sep 2011 08:43:00 +0000
(10:43 +0200)
committer
Merlijn van Deen (valhallasw)
<valhallasw+prune@gmail.com>
Mon, 26 Sep 2011 08:43:00 +0000
(10:43 +0200)
igor.py
patch
|
blob
|
history
diff --git
a/igor.py
b/igor.py
index dde15622557f8e7c1416b5904d528374aa2bba03..85d43f6387581d197de66aa72c8081c9f5475f3b 100644
(file)
--- a/
igor.py
+++ b/
igor.py
@@
-273,6
+273,7
@@
class Folder(object):
self.name = path[-1]
self.path = path
self.children = []
+
def __getitem__(self, key):
if isinstance(key, int):
return self.children[key]