Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Cpython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sip
Cpython
Commits
81b9d9dd
Unverified
Commit
81b9d9dd
authored
Sep 28, 2022
by
Jakob Weigert
Committed by
GitHub
Sep 28, 2022
Browse files
Options
Downloads
Patches
Plain Diff
Fix typo in error message in plistlib (GH-97540)
parent
575a253b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Lib/plistlib.py
+1
-1
1 addition, 1 deletion
Lib/plistlib.py
with
1 addition
and
1 deletion
Lib/plistlib.py
+
1
−
1
View file @
81b9d9dd
...
@@ -152,7 +152,7 @@ def _date_to_string(d):
...
@@ -152,7 +152,7 @@ def _date_to_string(d):
def
_escape
(
text
):
def
_escape
(
text
):
m
=
_controlCharPat
.
search
(
text
)
m
=
_controlCharPat
.
search
(
text
)
if
m
is
not
None
:
if
m
is
not
None
:
raise
ValueError
(
"
strings can
'
t contain
s
control characters;
"
raise
ValueError
(
"
strings can
'
t contain control characters;
"
"
use bytes instead
"
)
"
use bytes instead
"
)
text
=
text
.
replace
(
"
\r\n
"
,
"
\n
"
)
# convert DOS line endings
text
=
text
.
replace
(
"
\r\n
"
,
"
\n
"
)
# convert DOS line endings
text
=
text
.
replace
(
"
\r
"
,
"
\n
"
)
# convert Mac line endings
text
=
text
.
replace
(
"
\r
"
,
"
\n
"
)
# convert Mac line endings
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment