Преглед на файлове

Replace != None with is not None

niels преди 5 години
родител
ревизия
c6981fe88a
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      player.py

+ 1 - 1
player.py

@@ -90,7 +90,7 @@ class Player(object):
         return found_option
 
     def set_error(self, error_code, **kwargs):
-        if error_code != None:
+        if error_code is not None:
             self.error = PlayerError(error_code, **kwargs)
         else:
             self.error = None