Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc32024 commit df66df0Copy full SHA for df66df0
1 file changed
Lib/distutils/util.py
@@ -443,3 +443,13 @@ def byte_compile (py_files,
443
(file, cfile_base)
444
445
# byte_compile ()
446
+
447
+def rfc822_escape (header):
448
+ """Return a version of the string escaped for inclusion in an
449
+ RFC-822 header, by adding a space after each newline.
450
+ """
451
+ header = string.rstrip(header)
452
+ header = string.replace(header, '\n', '\n ')
453
+ return header
454
455
0 commit comments