]> khamidou — GitHub mirrors - cagibi.git/commitdiff
renamed src dir to cagibi
authorkarim hamidou <khamidou@gmail.com>
Wed, 4 Jul 2012 07:45:16 +0000 (09:45 +0200)
committerkarim hamidou <khamidou@gmail.com>
Wed, 4 Jul 2012 07:45:16 +0000 (09:45 +0200)
cagibi/rsync.py [moved from src/rsync.py with 100% similarity]
cagibi/watch.py [moved from src/watch.py with 92% similarity]

similarity index 100%
rename from src/rsync.py
rename to cagibi/rsync.py
similarity index 92%
rename from src/watch.py
rename to cagibi/watch.py
index ffad58288c405271459f8a095ef5356e3c318473..d7b568e0529357e065cc2106dd0a250fab6b651f 100644 (file)
@@ -7,7 +7,8 @@ class FileWatcher:
         self.paused = False
 
     def addHandler(self, fn):
-        """add an handler which is called everytime a change is detected. An handler function is a function which is called whenever a file change is detected.
+        """add an handler which is called everytime a change is detected. An handler function is a function which is called 
+        whenever a file change is detected.
         This function takes three parameters : a list of files modified, a list of files added and a list of files removed."""
         self.handlers.append(fn)
 
@@ -33,6 +34,7 @@ class FileWatcher:
 if __name__ == "__main__":
     def handler(m, a, r):
         print "added: %s, modified: %s, removed: %s" % (a, m, r)
+
     fw = FileWatcher()
     fw.addHandler(handler)
     fw.watch()