calibre/calibre-5.16.0-python-3.7.patch

13 lines
525 B
Diff
Raw Normal View History

--- calibre-5.16.0/src/calibre/utils/formatter.py.orig 2021-04-18 14:10:24.085338098 +0200
+++ calibre-5.16.0/src/calibre/utils/formatter.py 2021-04-18 14:11:43.765791414 +0200
@@ -888,7 +888,8 @@
def do_node_first_non_empty(self, prog):
for expr in prog.expression_list:
- if v := self.expr(expr):
+ v = self.expr(expr)
+ if v:
if (self.break_reporter):
self.break_reporter(prog.node_name, v, prog.line_number)
return v