diff --git a/napalm_base/utils/string_parsers.py b/napalm_base/utils/string_parsers.py
index <HASH>..<HASH> 100644
--- a/napalm_base/utils/string_parsers.py
+++ b/napalm_base/utils/string_parsers.py
@@ -94,7 +94,7 @@ def convert_uptime_string_seconds(uptime):
     uptime_seconds = 0
 
     for unit, value in uptime_dict.items():
-        if value != None:
+        if value is not None:
             if unit == 'weeks':
                 uptime_seconds += int(value) * 604800
             elif unit == 'days':
Fixing minor pylama issue