File: 05-no-import-exceptions.patch

package info (click to toggle)
python-dsv 1.4.1-11
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 424 kB
  • sloc: python: 582; makefile: 7
file content (25 lines) | stat: -rw-r--r-- 962 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- a/DSV/DSV.py
+++ b/DSV/DSV.py
@@ -128,7 +128,6 @@ import sys
 # import pre as re # sre was broken, appears okay now. Try this if there are problems.
 import re 
 import copy
-import exceptions
 import string
 ## RedHat 8.0 (or rather GTK2?) sets LANG = en_us.UTF-8 and apparently some
 ## older apps (including wxGTK) can't handle this.  The fix is to set LANG=C
@@ -147,10 +146,10 @@ try:
 except ImportError:
     wx = None
 
-class InvalidDelimiter(exceptions.StandardError): pass
-class InvalidTextQualifier(exceptions.StandardError): pass
-class InvalidData(exceptions.StandardError): pass
-class InvalidNumberOfColumns(exceptions.StandardError): pass
+class InvalidDelimiter(StandardError): pass
+class InvalidTextQualifier(StandardError): pass
+class InvalidData(StandardError): pass
+class InvalidNumberOfColumns(StandardError): pass
 
 # ------------------------------------------------------------------------------
 def guessTextQualifier(input):