File: 001-fix-syntaxwarning.patch

package info (click to toggle)
python-art 6.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,076 kB
  • sloc: python: 73,473; makefile: 7; sh: 4
file content (26 lines) | stat: -rw-r--r-- 563 bytes parent folder | download | duplicates (2)
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
26
Description: Fix for SyntaxWarning
 Fixes SyntaxWarning for invalid escape sequences in
 test.py and test2.py by converting multi-line strings
 to raw strings.
Forwarded: not-needed
Author: Yogeswaran Umasankar <yogu@debian.org>
Last-Update: 2024-11-10

--- a/art/tests/test.py
+++ b/art/tests/test.py
@@ -1,5 +1,5 @@
 # -*- coding: utf-8 -*-
-'''
+r'''
 >>> import os
 >>> import random
 >>> import sys
--- a/art/tests/test2.py
+++ b/art/tests/test2.py
@@ -1,5 +1,5 @@
 # -*- coding: utf-8 -*-
-'''
+r'''
 >>> import os
 >>> import random
 >>> from art import *