- 12 Dec, 2004 7 commits
-
-
Johannes Gijsbers authored
- Doc/lib/libbase64.tex s/algorith/algorithm - Doc/lib/libpickle.tex s/interchangable/interchangeable - Doc/lib/libxmlrpclib.tex s/{_cmp__}/{__cmp__} leading underscore needs to be double, not single. - Doc/ref/ref6.tex 0/1 => False/True
-
Johannes Gijsbers authored
more. Thanks to Simon Percivall! The patch makes changes to inspect.py in two places: * the pattern to match against functions at line 436 is modified: lambdas should be matched even if not preceded by whitespace, as long as "lambda" isn't part of another word. * the BlockFinder class is heavily modified. Changes are: - checking for "def", "class" or "lambda" names before setting self.started to True. Then checking the same line for word characters after the colon (if the colon is on that line). If so, and the line does not end with a line continuation marker, raise EndOfBlock immediately. - adding self.passline to show that the line is to be included and no more checking is necessary on that line. Since a NEWLINE token is not generated when a line continuation marker exists, this allows getsource to continue with these functions even if the following line would not be indented. Also add a bunch of 'quite-unlikely-to-occur-in-real-life-but-working-anyway' tests.
-
Johannes Gijsbers authored
the fodder modules to separate files to get rid of the imp.load_source() trickery.
-
Johannes Gijsbers authored
Michael Hudson.
-
Martin v. Löwis authored
-
Andrew MacIntyre authored
Also revise a related function to minimise file handle/pipe leakage and improve reliability.
-
Andrew MacIntyre authored
-
- 11 Dec, 2004 2 commits
-
-
Brett Cannon authored
expand_tabs, on the object being wrapped.
-
Raymond Hettinger authored
The sys module could be called before being imported.
-
- 10 Dec, 2004 3 commits
-
-
Marc-André Lemburg authored
Tools/i18n/makelocalealias.py, a tool to parse the X11 locale alias file); the encoding lookup was enhanced to use Python's encoding alias table As sige-effect, this fixes SF bug [ 1080864 ] locale.py doesn't recognize valid locale setting.
-
Marc-André Lemburg authored
-
Raymond Hettinger authored
* Note correct return type is int. * Note that -1 returned on failure.
-
- 07 Dec, 2004 9 commits
-
-
Tim Peters authored
-
Fred Drake authored
half was removed in revision 1.25
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Brett Cannon authored
instead of getopt. Required making use of gettext._ as optional (optparse changed OK'ed by Greg Ward in private email).
-
Brett Cannon authored
directories) and the include directories specified in CPPFLAGS (``-I`` directories) for compiling the extension modules. This has led to the core being compiled with the values in the shell's CPPFLAGS. It has also removed the need for special casing to use Fink and DarwinPorts under darwin since the needed directories can now be specified in LDFLAGS and CPPFLAGS (e.g., DarwinPorts users can now do ``LDFLAGS=-L/opt/local/lib; CPPFLAGS=-I/opt/local/include; ./configure`` for everything to work properly). Parsing the values in the environment variables is done with getopt. While optparse would have been a nicer solution it cannot be used because of dependency issues at execution time; optparse uses gettext which uses struct which will not have been compiled when the code is imported. If optparse ever makes its importation of gettext optional by catching ImportError and setting _() to an identity function then it can be used.
-
Brett Cannon authored
expression in min_max() to shut gcc up.
-
- 06 Dec, 2004 6 commits
-
-
Johannes Gijsbers authored
smtplib can not log in to some server using command AUTH PLAIN, it sends ``user\0user\0pass'' to the server, but ``\0user\0pass'' has better compatibility.
-
Johannes Gijsbers authored
errors don't get provoked that way. Also add a bunch of cross-references to bugs.
-
Raymond Hettinger authored
-
Walter Dörwald authored
-
Brett Cannon authored
is pointless. Also add a note to the docs for the 'test' package that test cases should check first that any conditions needed in the operating system are met before having a test run. Closes bug #1077302. THanks, Ian Holsman.
-
Brett Cannon authored
-
- 05 Dec, 2004 11 commits
-
-
Peter Astrand authored
Changed signature of call function to avoid confusion: this 'args' is not the same as the one to the Popen constructor
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Fred Drake authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Barry Warsaw authored
caused by a self._input.readline() call that wasn't checking for the NeedsMoreData marker. msg_43.txt contains a message that illustrates the problem, when email.message_from_*() is called. That interface uses the Parser API, which splits reads into 8192 byte chunks. It so happens that for the test message, the 8192 chunk falls inside a message/delivery-status, which is where in the FeedParser the readline() call was that didn't check for NeedsMoreData. I also added an assert to unreadline() so it'll be more evident if an attempt to push back NeedsMoreData ever happens again. Bump the email package version number.
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
- 04 Dec, 2004 2 commits
-
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-