From a28bc03fb498a8a5a6be51776d89c6f860ba9b72 Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Sat, 19 Jan 2008 13:36:30 +0000 Subject: set gio.unix to None if it's not available 2008-01-19 Johan Dahlin * gio/__init__.py: set gio.unix to None if it's not available svn path=/trunk/; revision=732 --- ChangeLog | 2 ++ gio/__init__.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b709939..ad8b724 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2008-01-19 Johan Dahlin + * 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 -- cgit