Public bug reported:

Starting khal (Ubuntu 20.04) gives me an error:

$ khal
/usr/lib/python3/dist-packages/khal/settings/utils.py:136: SyntaxWarning: "is" 
with a literal. Did you mean "=="?
  if color is None or color is '':
…

Line 136 looks like this:
  if color is None or color is '':

In upstream¹ this line looks like that:
  if color is None or color == '':

I patched my utils.py manually, now the error is gone.

Kind regards
Aiko

¹:
https://github.com/pimutils/khal/blob/master/khal/settings/utils.py#L156

** Affects: khal (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1874621

Title:
  SyntaxWarning: "is" with a literal

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/khal/+bug/1874621/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to