fixing cli.py and filelist.py
authorAlexandr Popov <popov2al@gmail.com>
Tue, 10 Mar 2009 18:33:20 +0000 (21:33 +0300)
committerAlexandr Popov <popov2al@gmail.com>
Tue, 10 Mar 2009 18:33:20 +0000 (21:33 +0300)
src/cli.py
src/filelist.py

index ebe9856..d8670a4 100644 (file)
@@ -5,8 +5,8 @@
 
 class Cli(object):
 
-    def show(self, path, size):
-        print "%12g  %s" % (size/1024./1024., path)
-
     def __init__(self):
         pass
+
+    def show(self, path, size):
+        print "%12g  %s" % (size/1024./1024., path)
index 8d8b999..73eb5d1 100644 (file)
@@ -4,13 +4,14 @@
 # pylint: disable-msg=C0301
 
 class FileList(object):
+
+    def __init__(self, out_ui):
+        self.ui = out_ui
+        self.flist = []
+
     def add(self, fpath, fsize):
         self.flist.append((fpath, fsize))
     
     def show(self):
         for fpath, fsize in self.flist:
             self.ui.show(fpath, fsize)
-        
-    def __init__(self, out_ui):
-        self.ui = out_ui
-        self.flist = []