diff options
author | Armin Rigo <arigo@tunes.org> | 2012-06-26 11:14:55 +0200 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2012-06-26 11:14:55 +0200 |
commit | f176eb9100525091e1cb268d9277ac9c236b58bb (patch) | |
tree | 2badc2e0eade9332fd277779ab7451cffdee9aba /demo/readdir2.py | |
parent | 2fea254813b852d4e5e95e23241304fc65fdb7bc (diff) | |
download | cffi-f176eb9100525091e1cb268d9277ac9c236b58bb.tar.gz |
Fix the demos (None => ffi.NULL)
Diffstat (limited to 'demo/readdir2.py')
-rw-r--r-- | demo/readdir2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demo/readdir2.py b/demo/readdir2.py index f999314..571f49d 100644 --- a/demo/readdir2.py +++ b/demo/readdir2.py @@ -49,7 +49,7 @@ def walk(basefd, path): if ffi.C.readdir_r(dir, dirent, result): # error in readdir_r() break - if result[0] is None: + if result[0] == ffi.NULL: break name = str(dirent.d_name) print '%3d %s' % (dirent.d_type, name) |