Selaa lähdekoodia

[core] changing 'is' to '==' as it was syntax error

ayush.goyal 4 vuotta sitten
vanhempi
commit
7223599049
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      desktop/core/src/desktop/lib/view_util.py

+ 1 - 1
desktop/core/src/desktop/lib/view_util.py

@@ -31,7 +31,7 @@ LOG = logging.getLogger(__name__)
 
 
 def big_filesizeformat(bytes):
-  if bytes is None or bytes is "":
+  if bytes is None or bytes == "":
     return "N/A"
 
   assert bytes >= 0