mirror of https://github.com/kivy/kivy.git
doc: Changed equality comparison to use ==
This commit is contained in:
parent
2af1fe8c3e
commit
40a7bc3ac3
|
@ -312,7 +312,7 @@ Calling platform() will return one of: *win*, *linux*, *android*, *macosx*,
|
||||||
foo = {'linux' : do_linux_things}
|
foo = {'linux' : do_linux_things}
|
||||||
foo[platform]() # calls do_linux_things
|
foo[platform]() # calls do_linux_things
|
||||||
p = platform # assigns to a module object
|
p = platform # assigns to a module object
|
||||||
if p is 'android':
|
if p == 'android':
|
||||||
do_android_things()
|
do_android_things()
|
||||||
p += 'some string' # error!
|
p += 'some string' # error!
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue