summaryrefslogtreecommitdiffstats
path: root/Lib/py_compile.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #23811: Add missing newline to the PyCompileError error message.Berker Peksag2015-04-141-1/+1
| | | | Patch by Alex Shkop.
* #7842: backport fix for py_compile.compile syntax error message handling.R David Murray2013-02-201-1/+1
|
* fix typo in r79533, introduced by the fix for issue #8233Matthias Klose2010-04-201-1/+1
|
* - Issue #8233: When run as a script, py_compile.py optionally takes a singleBarry Warsaw2010-03-311-8/+24
| | | | | | argument `-` which tells it to read files to compile from stdin. Each line is read on demand and the named file is compiled immediately. (Original patch by Piotr Ożarowski).
* these lines can now be dispensed withBenjamin Peterson2010-03-181-2/+0
|
* clean up files correctlyBenjamin Peterson2010-03-151-15/+13
|
* remove mac 9 codeBenjamin Peterson2010-03-151-10/+0
|
* #2225: return nonzero status code from py_compile if not all files could be ↵Georg Brandl2008-03-061-2/+6
| | | | compiled.
* Patch #1171150: add a newline to py_compile error outputGeorg Brandl2005-06-101-1/+1
|
* Getting rid of macfs.Jack Jansen2003-02-271-2/+2
|
* Whitespace normalization.Tim Peters2003-01-291-9/+9
|
* Patch #661719: Expose compilation errors as exceptions on request.Martin v. Löwis2003-01-151-17/+75
|
* Added a main() function and support to run this module as a script.Fred Drake2002-08-211-1/+19
| | | | Closes SF feature request #588768.
* Refactor: Remove some code that was obsoleted when this module wasFred Drake2002-08-211-11/+17
| | | | | | | | | changed to use universal newlines. Remove all imports from the compile() function; these are now done at the top of the module ("Python normal form"), and define a helper based on the platform instead of testing the platform in the compile() function.
* Replaced obsolete stat module constants with equivalent attributesRaymond Hettinger2002-06-011-2/+2
|
* Replace boolean test with is None.Raymond Hettinger2002-06-011-1/+1
|
* Mass checkin of universal newline support.Jack Jansen2002-04-141-1/+1
| | | | | | | | Highlights: import and friends will understand any of \r, \n and \r\n as end of line. Python file input will do the same if you use mode 'U'. Everything can be disabled by configuring with --without-universal-newlines. See PEP278 for details.
* __all__ for several more modulesSkip Montanaro2001-02-121-0/+2
|
* String method conversion.Eric S. Raymond2001-02-091-2/+2
|
* Support \r in source files. Closes bug #101425.Martin v. Löwis2000-09-151-0/+5
|
* More trivial comment -> docstring transformations by Ka-Ping Yee,Guido van Rossum2000-02-041-1/+1
| | | | | | | | | | | | | | | | | | who writes: Here is batch 2, as a big collection of CVS context diffs. Along with moving comments into docstrings, i've added a couple of missing docstrings and attempted to make sure more module docstrings begin with a one-line summary. I did not add docstrings to the methods in profile.py for fear of upsetting any careful optimizations there, though i did move class documentation into class docstrings. The convention i'm using is to leave credits/version/copyright type of stuff in # comments, and move the rest of the descriptive stuff about module usage into module docstrings. Hope this is okay.
* Fix two bugs in the fstat() line, reported by Fredruk Lundh.Guido van Rossum1998-10-071-1/+1
|
* Fix suggested by Sjoerd (long ago!) to get a better error message whenGuido van Rossum1998-09-291-1/+9
| | | | | | | | there's a syntax error. (In particular, display the correct filename). This changes the API: if there's a syntax error, the function now returns normally after dumping the error to sys.stderr. I changed Sjoerd's use of string.join(string.split(...)) with string.replace().
* On the mac, shouldn't change the creator+type of the *source* file!Guido van Rossum1998-08-111-1/+0
|
* Mass check-in after untabifying all files that need it.Guido van Rossum1998-03-261-9/+9
|
* Typo (coestring -> codestring) discovered by Mark Hammond.Guido van Rossum1998-03-021-1/+1
|
* Added docstrings.Guido van Rossum1998-01-191-32/+63
| | | | | | | Added an optional third parameter giving the purported filename for error messages from the module. Append a newline to the code string if needed.
* Use fstat if we can; write MAGIC into file last.Guido van Rossum1997-11-221-2/+8
|
* compile(): Use the __debug__ flag to determine the proper filename extensionFred Drake1997-03-131-1/+1
| | | | to use for the cached module code object.
* Cast mtime gotten from stat() to long int -- else it won't workGuido van Rossum1996-10-241-1/+1
| | | | | | on the Mac. Jack! Please fix this in the Mac distributions!
* change Mac creator/typeGuido van Rossum1996-05-281-2/+2
|
* Get magic number from interpreter (using module imp).Sjoerd Mullender1995-07-191-2/+3
|
* Mac-specific code for setting filetype was outdated.Jack Jansen1995-04-231-3/+3
|
* changes for the MacGuido van Rossum1995-01-271-2/+7
|
* New way of generating .pyc files, thanks to Sjoerd.Guido van Rossum1994-08-291-0/+25
urllib.py: '+' is not always safe (even though the RFC says so :-( ) whrandom.py: throw away top bits of time to avoid overflow on Mac (where times can be negative)