[sabayon] Minor cleanup



commit c83bc8f05a8c849d87a350ea3c6f0ae84deceec1
Author: Scott Balneaves <sbalneav ltsp org>
Date:   Sat Dec 26 21:11:23 2009 -0600

    Minor cleanup

 lib/cache.py      |    1 -
 lib/dirmonitor.py |    6 ++----
 2 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/lib/cache.py b/lib/cache.py
index 9c6ca86..e29b2de 100755
--- a/lib/cache.py
+++ b/lib/cache.py
@@ -22,7 +22,6 @@ import os
 import stat
 import string
 import libxml2
-import StringIO
 import debuglog
 
 def dprint(fmt, *args):
diff --git a/lib/dirmonitor.py b/lib/dirmonitor.py
index 8c93dc7..ce56679 100755
--- a/lib/dirmonitor.py
+++ b/lib/dirmonitor.py
@@ -21,9 +21,7 @@ import os.path
 import gobject
 import gio
 import util
-import fnmatch
 import debuglog
-import urllib
 
 N_WATCHES_LIMIT = 200
 
@@ -120,7 +118,7 @@ class DirectoryMonitor:
         try:
             gfile = gio.File (dir)
             self.watches [dir] = gfile.monitor_directory ()
-            self.watches [dir].connect ("changed", self.__handle_file_monitor_event) 
+            self.watches [dir].connect ("changed", self.__handle_file_monitor_event)
             dprint ("Added directory watch for '%s'", dir)
         except:
             print ("Failed to add monitor for %s") % (dir)
@@ -230,7 +228,7 @@ def run_unit_tests ():
     expect (expected, os.path.join (temp_path, "foobar"), DELETED)
     
     # FIXME: we should be getting this event, but we don't seem to be
-    # expect (expected, os.path.join (temp_path, "foo.txt"), DELETED)
+    expect (expected, os.path.join (temp_path, "foo.txt"), DELETED)
     
     # ignore:
     # expect (expected, os.path.join (temp_path, "bar"), DELETED)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]