doc: Changed equality comparison to use ==

This commit is contained in:
Alexander Taylor 2014-08-31 13:05:04 +01:00
parent 2af1fe8c3e
commit 40a7bc3ac3
1 changed files with 1 additions and 1 deletions

View File

@ -312,7 +312,7 @@ Calling platform() will return one of: *win*, *linux*, *android*, *macosx*,
foo = {'linux' : do_linux_things}
foo[platform]() # calls do_linux_things
p = platform # assigns to a module object
if p is 'android':
if p == 'android':
do_android_things()
p += 'some string' # error!