Skip to content

Commit 90cc53b

Browse files
vstinnermbyrnepr2
authored andcommitted
Apply batched suggestions from code review
Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent 3f64d5b commit 90cc53b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Lib/tempfile.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,14 @@ def _sanitize_params(prefix, suffix, dir):
120120
if suffix is None:
121121
suffix = output_type()
122122
if _os.path.dirname(suffix):
123-
raise ValueError("'suffix' can't contain a directory component")
123+
raise ValueError("suffix can't contain a directory component")
124124
if prefix is None:
125125
if output_type is str:
126126
prefix = template
127127
else:
128128
prefix = _os.fsencode(template)
129129
if _os.path.dirname(prefix):
130-
raise ValueError("'prefix' can't contain a directory component")
130+
raise ValueError("prefix can't contain a directory component")
131131
if dir is None:
132132
if output_type is str:
133133
dir = gettempdir()

0 commit comments

Comments
 (0)