diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2011-11-30 11:09:34 +0100 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2011-11-30 16:17:42 +0100 |
commit | 91ff165ab1cd8c4751c60873ad6db24bf009ec33 (patch) | |
tree | 0593eccaf3bf34fd29a907dbd80adcfd376c6465 | |
parent | 2b31a35011501971b46b3cd44a82812869fec6d1 (diff) |
Remove unused python gobject import
Nothing in examples/demo.py uses this import, and having it causes a
runtime error:
Traceback (most recent call last):
File "examples/demo.py", line 4, in <module>
from gi.repository import Libosinfo as osinfo;
File "/usr/lib64/python2.7/site-packages/gi/__init__.py", line 23, in <module>
from ._gi import _API, Repository
ImportError: could not import gobject (error was: ImportError('When using
gi.repository you must not import static modules like "gobject". Please
change all occurrences of "import gobject" to "from gi.repository import
GObject".',))
-rwxr-xr-x | examples/demo.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/examples/demo.py b/examples/demo.py index ac09ae7..1aceef3 100755 --- a/examples/demo.py +++ b/examples/demo.py @@ -1,6 +1,5 @@ #!/usr/bin/python -import gobject from gi.repository import Libosinfo as osinfo; loader = osinfo.Loader() |