Explorar o código

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

ayush.goyal %!s(int64=5) %!d(string=hai) anos
pai
achega
7223599049
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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