[jhbuild] packagedb: remove __main__ sniplet at end of file
- From: Ryan Lortie <desrt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [jhbuild] packagedb: remove __main__ sniplet at end of file
- Date: Sun, 1 Feb 2015 11:26:53 +0000 (UTC)
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]