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



commit 68ba4e85381bc92597e937b9775db3ff22db7763
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]