[jhbuild/desrt/master: 19/21] packagedb: remove __main__ sniplet at end of file
- From: Ryan Lortie <desrt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [jhbuild/desrt/master: 19/21] packagedb: remove __main__ sniplet at end of file
- Date: Sun, 18 Jan 2015 15:45:12 +0000 (UTC)
commit c732c82db428cc77cdf068e987d240bd6df1aac4
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]