From 40a7bc3ac3557b366b5b990fc006775323e543ea Mon Sep 17 00:00:00 2001 From: Alexander Taylor Date: Sun, 31 Aug 2014 13:05:04 +0100 Subject: [PATCH] doc: Changed equality comparison to use == --- kivy/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kivy/utils.py b/kivy/utils.py index 7b19113ba..7bd98d99e 100644 --- a/kivy/utils.py +++ b/kivy/utils.py @@ -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!