File: fix_init.patch

package info (click to toggle)
python-pweave 0.30.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,068 kB
  • sloc: python: 30,281; makefile: 167
file content (13 lines) | stat: -rw-r--r-- 637 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: python-pweave/pweave/__init__.py
===================================================================
--- python-pweave.orig/pweave/__init__.py	2023-01-31 13:02:12.658424192 +0100
+++ python-pweave/pweave/__init__.py	2023-01-31 13:57:06.769361665 +0100
@@ -44,7 +44,7 @@
     if figformat is not None:
         sys.stdout.write("figformat option is not implemented for Pweave >= 0.3")
 
-    assert file != "" is not None, "No input specified"
+    assert file is not None and file != "", "No input specified"
 
     doc = Pweb(file, informat=informat, doctype=doctype,
                kernel=kernel, output=output, figdir=figdir,