From 8b8b77d888cc81cfccafefa09a7f20fd2e8ce756 Mon Sep 17 00:00:00 2001 From: Brian Pond Date: Mon, 12 Oct 2020 13:06:36 -0700 Subject: [PATCH] Update source.py This small fix should prevent the following error from appears in the worker logs. /erpnext/frappe_bench/env/lib/python3.8/site-packages/pdfkit/source.py:11: SyntaxWarning: "is" with a literal. Did you mean "=="? 20:00:09 worker_short.1 | if self.type is 'file': --- pdfkit/source.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdfkit/source.py b/pdfkit/source.py index 44ca1bf..28e9659 100644 --- a/pdfkit/source.py +++ b/pdfkit/source.py @@ -8,7 +8,7 @@ def __init__(self, url_or_file, type_): self.source = url_or_file self.type = type_ - if self.type is 'file': + if self.type == 'file': self.checkFiles() def isUrl(self):