Browse Source

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

ayush.goyal 4 years ago
parent
commit
7223599049
1 changed files with 1 additions and 1 deletions
  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):
 def big_filesizeformat(bytes):
-  if bytes is None or bytes is "":
+  if bytes is None or bytes == "":
     return "N/A"
     return "N/A"
 
 
   assert bytes >= 0
   assert bytes >= 0