[jhbuild] packagedb: remove __main__ sniplet at end of file



commit ee89ba0a5a55bd2ebe0972affec612c5848a7e7c
Author: Ryan Lortie <desrt desrt ca>
Date:   Sun Jan 18 10:28:11 2015 -0500

    packagedb: remove __main__ sniplet at end of file
    
    This code fragment supported dumping out the contents of the packagedb
    if the file was run directly.  Remove it, because that's about to stop
    working.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=743127

 jhbuild/utils/packagedb.py |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/jhbuild/utils/packagedb.py b/jhbuild/utils/packagedb.py
index 964fbba..d3688cf 100644
--- a/jhbuild/utils/packagedb.py
+++ b/jhbuild/utils/packagedb.py
@@ -278,7 +278,3 @@ class PackageDB:
         self._entries[package_name].remove()
         del self._entries[package_name]
         self._write_cache()
-
-if __name__ == '__main__':
-    db = PackageDB(sys.argv[1])
-    print "%r" % (db._entries, )


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