File: 0003_Tabview_Optional.patch

package info (click to toggle)
python-clevercsv 0.8.4%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,080 kB
  • sloc: python: 6,211; ansic: 870; makefile: 90
file content (17 lines) | stat: -rw-r--r-- 770 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Tabview is currently not packaged in Debian (see BTS #811294). It is listed as
an optional dependency, but if it's absent, it crashes the whole CLI tool. With
this patch, only the `clevercsv view` command will fail, instead of the whole
program.
Index: python-clevercsv/clevercsv/console/commands/view.py
===================================================================
--- python-clevercsv.orig/clevercsv/console/commands/view.py
+++ python-clevercsv/clevercsv/console/commands/view.py
@@ -61,7 +61,7 @@ class ViewCommand(Command):
             )
             return
 
-        import_optional_dependency("tabview", raise_on_missing=True)
+        import_optional_dependency("tabview", raise_on_missing=False)
         from tabview import view
 
         view(rows)