summaryrefslogtreecommitdiff
path: root/demo/readdir2.py
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2012-06-26 11:14:55 +0200
committerArmin Rigo <arigo@tunes.org>2012-06-26 11:14:55 +0200
commitf176eb9100525091e1cb268d9277ac9c236b58bb (patch)
tree2badc2e0eade9332fd277779ab7451cffdee9aba /demo/readdir2.py
parent2fea254813b852d4e5e95e23241304fc65fdb7bc (diff)
downloadcffi-f176eb9100525091e1cb268d9277ac9c236b58bb.tar.gz
Fix the demos (None => ffi.NULL)
Diffstat (limited to 'demo/readdir2.py')
-rw-r--r--demo/readdir2.py2
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)