summaryrefslogtreecommitdiffstats
path: root/Lib/quopri.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-15999: Clean up of handling boolean arguments. (GH-15610)Serhiy Storchaka2019-09-011-4/+4
| | | | | | * Use the 'p' format unit instead of manually called PyObject_IsTrue(). * Pass boolean value instead 0/1 integers to functions that needs boolean. * Convert some arguments to boolean only once.
* Issue #23681: Fixed Python 2 to 3 poring bugs.Serhiy Storchaka2015-03-201-1/+1
| | | | Indexing bytes retiurns an integer, not bytes.
* Correct the quopri module documentation. Mention the correct types of theSenthil Kumaran2014-06-251-8/+6
| | | | | | parameters on encodestring and decodestring. Patch by Petri Lehtinen.
* Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)Brett Cannon2013-07-041-1/+1
|
* Issue #18200: Update the stdlib (except tests) to useBrett Cannon2013-06-141-1/+1
| | | | ModuleNotFoundError.
* Replace IOError with OSError (#16715)Andrew Svetlov2012-12-251-1/+1
|
* convert shebang lines: python -> python3Benjamin Peterson2010-03-111-1/+1
|
* Use true booleans and a bit more PEP8.Georg Brandl2009-09-021-9/+9
|
* Patch 1329 (partial) by Christian Heimes.Guido van Rossum2007-10-301-6/+8
| | | | | | | | Add a closefd flag to open() which can be set to False to prevent closing the file descriptor when close() is called or when the object is destroyed. Useful to ensure that sys.std{in,out,err} keep their file descriptors open when Python is uninitialized. (This was always a feature in 2.x, it just wasn't implemented in 3.0 yet.)
* Fix quopri to operate consistently on bytes.Martin v. Löwis2007-07-281-46/+51
|
* Change some uses of cStringIO.StringIO to io.StringIO.Guido van Rossum2007-05-181-2/+2
| | | | This is undoubtedly insufficient and in some cases just as broken as before.
* Fix most trivially-findable print statements.Guido van Rossum2007-02-091-5/+5
| | | | | | | | | There's one major and one minor category still unfixed: doctests are the major category (and I hope to be able to augment the refactoring tool to refactor bona fide doctests soon); other code generating print statements in strings is the minor category. (Oh, and I don't know if the compiler package works.)
* SF patch 1631942 by Collin Winter:Guido van Rossum2007-01-101-2/+2
| | | | | | (a) "except E, V" -> "except E as V" (b) V is now limited to a simple name (local variable) (c) V is now deleted at the end of the except block
* import statements only raise ImportError, right?Skip Montanaro2002-03-231-1/+1
|
* Patch 471400: escape single-dot lines; by Jason Hildebrand.Guido van Rossum2001-10-151-0/+2
| | | | | RFC 2049 recommends never outputting a line consisting of a single dot.
* Whitespace normalization.Tim Peters2001-10-041-5/+5
|
* Patch #462190, patch #464070: Support quoted printable in the binascii module.Martin v. Löwis2001-09-301-11/+44
| | | | Decode and encode underscores for header style encoding. Fixes bug #463996.
* The first batch of changes recommended by the fixdiv tool. These areGuido van Rossum2001-09-041-1/+1
| | | | | mostly changes of / operators into //. Once or twice I did more or less than recommended.
* Whitespace normalization; the plat-riscos file didn't even get byTim Peters2001-07-021-6/+6
| | | | tabnanny.py.
* encode(): Fixed the handling of soft line breaks for lines over 76Barry Warsaw2001-06-191-14/+12
| | | | | characters in length. Remember that when calculating the soft breaks, the trailing `=' sign counts against the max length!
* Better support for RFC 1521 quoted-printable specification, along withBarry Warsaw2001-06-191-25/+77
| | | | | | | | | | | | | | | | | | | | | | addition of interface for consistency with base64 module. Namely, encodestring(), decodestring(): New functions which accept a string object and return a string object. They just wrap the string in StringIOs and pass them to the encode() and decode() methods respectively. encodestring() accepts a default argument of quotetabs, defaulting to zero, which is passed on straight through to encode(). encode(): Fix the bug where an extra newline would always be added to the output, which prevented an idempotent roundtrip through encode->decode. Now, if the source string doesn't end in a newline, then the result string won't end in a newline. Also, extend the quotetabs argument semantics to include quoting embedded strings, which is also optional according to the RFC. test() -> main() "from quopri import *" also imports encodestring() and decodestring().
* Strip \r as trailing whitespace as part of soft line endings.Guido van Rossum2001-03-221-1/+1
| | | | | Inspired by SF patch #408597 (Walter Dörwald): quopri, soft line breaks and CRLF. (I changed (" ", "\t", "\r") into " \t\r".)
* __all__ for several more modulesSkip Montanaro2001-02-121-0/+2
|
* Whitespace normalization.Tim Peters2001-01-151-1/+1
|
* Update the code to better reflect recommended style:Fred Drake2000-12-121-1/+1
| | | | | Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects.
* Fix Bug #115907: encode '=' as '=3D' and not '=='Jeremy Hylton2000-10-051-121/+122
|
* The third and final doc-string sweep by Ka-Ping Yee.Guido van Rossum2000-02-041-1/+15
| | | | | | | | The attached patches update the standard library so that all modules have docstrings beginning with one-line summaries. A new docstring was added to formatter. The docstring for os.py was updated to mention nt, os2, ce in addition to posix, dos, mac.
* A few lines were indented using spaces instead of tabs -- fix them.Guido van Rossum1998-03-261-28/+28
|
* Added /usr/bin/env python and made executable.Guido van Rossum1997-07-111-0/+2
|
* Set correct RFC number.Guido van Rossum1997-05-081-1/+1
|
* improved test/main programGuido van Rossum1995-09-181-8/+40
|
* two mime encoding schemesGuido van Rossum1995-06-141-0/+101