[jhbuild/desrt/packagedb: 19/21] packagedb: remove __main__ sniplet at end of file



commit 037b4061a97bb8e88ea1501008ca58c71d83eec6
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.

 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]