Skip to content

Commit 08dc437

Browse files
committed
demo: remove invalid escape sequence from sample string
* examples/with-autowidgetsize/demo.py: same change as in commit 94f0dc9, since the file is essentially a copy of examples/demo.py. The escape sequence \/ is invalid in normal strings; use a raw string here, since the goal was to display both characters. (cherry picked from commit 18bf586)
1 parent 56783f5 commit 08dc437

File tree

1 file changed

+2
-2
lines changed
  • examples/with-autowidgetsize

1 file changed

+2
-2
lines changed

‎examples/with-autowidgetsize/demo.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
# demo.py --- Demonstration program and cheap test suite for pythondialog
55
#
6-
# Copyright (C) 2002-2010, 2013-2016 Florent Rougon
76
# Copyright (C) 2000 Robb Shecter, Sultanbek Tezadov
7+
# Copyright (C) 2002-2019 Florent Rougon
88
#
99
# This program is in the public domain.
1010

@@ -998,7 +998,7 @@ def mixedform_demo(self):
998998
9, 20, 54, 0, READ_ONLY),
999999
("Read-only field...", 10, 1, "... that doesn't go into the "
10001000
"output list", 10, 20, 0, 0, 0x0),
1001-
("\/3r`/ 53kri7 (0d3", 11, 1, "", 11, 20, 15, 20, HIDDEN) ]
1001+
(r"\/3r`/ 53kri7 (0d3", 11, 1, "", 11, 20, 15, 20, HIDDEN) ]
10021002

10031003
code, fields = d.mixedform(
10041004
"Please fill in some personal information:", elements, width=77)

0 commit comments

Comments
 (0)