summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--gio/__init__.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b709939..ad8b724 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2008-01-19 Johan Dahlin <johan@gnome.org>
+ * gio/__init__.py: set gio.unix to None if it's not available
+
* gio/gio.override: Implement InputStream.read efficiently without
copying the strings, based on the standard libararys file.read()
implementation.
diff --git a/gio/__init__.py b/gio/__init__.py
index d316da8..2a21d88 100644
--- a/gio/__init__.py
+++ b/gio/__init__.py
@@ -33,5 +33,5 @@ try:
import unix
unix # pyflakes
except ImportError:
- pass
+ unix = None
del _gio