jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/673453 )

Change subject: [fix] use 'is' when comparing types
......................................................................

[fix] use 'is' when comparing types

Change-Id: Iecb6582f30490b7d9aacaa2950afe21f0977e6b6
---
M pywikibot/site/_siteinfo.py
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Matěj Suchánek: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/pywikibot/site/_siteinfo.py b/pywikibot/site/_siteinfo.py
index 9ca6144..a798040 100644
--- a/pywikibot/site/_siteinfo.py
+++ b/pywikibot/site/_siteinfo.py
@@ -280,7 +280,7 @@
             expiry = 0
         # If expiry is a float or int convert to timedelta
         # Note: bool is an instance of int
-        if isinstance(expiry, float) or type(expiry) == int:
+        if isinstance(expiry, float) or type(expiry) is int:
             expiry = datetime.timedelta(expiry)

         # expire = 0 (or timedelta(0)) are always expired and their bool is

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/673453
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Iecb6582f30490b7d9aacaa2950afe21f0977e6b6
Gerrit-Change-Number: 673453
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Matěj Suchánek <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to