File: 001_fix_py2-syntax-warning.patch

package info (click to toggle)
readability 0.8.1%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 216 kB
  • sloc: python: 897; makefile: 37
file content (15 lines) | stat: -rw-r--r-- 704 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Author: Henry-Nicolas Tourneur <debian@nilux.be>
Description: The compatibility helper support both py2 and 3 versions while the
 py2 compatibility code causes a syntax error during compilation time.
 The whole compatibility module is removed to address this syntax issue.
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/readability/compat/two.py
+++ b/readability/compat/two.py
@@ -1,6 +0,0 @@
-def raise_with_traceback(exc_type, traceback, *args, **kwargs):
-    """
-    Raise a new exception of type `exc_type` with an existing `traceback`. All
-    additional (keyword-)arguments are forwarded to `exc_type`
-    """
-    raise exc_type(*args, **kwargs), None, traceback