diff MoinMoin/wikimacro.py @ 513:b918cb0263bf

fixed bug in SystemInfo imported from: moin--main--1.5--patch-517
author Thomas Waldmann <tw@waldmann-edv.de>
date Sun, 26 Mar 2006 22:08:43 +0000
parents e1990b501b22
children fb4240ec8361 4840926790f5
line wrap: on
line diff
--- a/MoinMoin/wikimacro.py	Sun Mar 26 20:50:56 2006 +0000
+++ b/MoinMoin/wikimacro.py	Sun Mar 26 22:08:43 2006 +0000
@@ -370,7 +370,7 @@
             try:
                 dirsize = 0
                 for root, dirs, files in os.walk(path):
-                    dirsize += sum(os.path.getsize(os.path.join(root, name)) for name in files)
+                    dirsize += sum([os.path.getsize(os.path.join(root, name)) for name in files])
             except EnvironmentError, e:
                 dirsize = -1
             return dirsize