46 Commits (89644d080b9663ab1a809113b965e4e33a9a7af1)

Author SHA1 Message Date
Meador Inge 22b9b37915 Issue #12618: py_compile cannot create files in current directory 14 years ago
Georg Brandl 8334fd9285 Add an "optimize" parameter to compile() to control the optimization level, and provide an interface to it in py_compile, compileall and PyZipFile. 15 years ago
Victor Stinner 58c0752a33 Issue #10335: Add tokenize.open(), detect the file encoding using 15 years ago
Benjamin Peterson 25216baf32 Create __pycache__ dir when the pyc path is explicitly given 16 years ago
Matthias Klose 1c994733bb Merged revisions 80274 via svnmerge from 16 years ago
Matthias Klose c166b4021f fix typo in r79533, introduced by the fix for issue #8233 16 years ago
Barry Warsaw 28a691b7fd PEP 3147 16 years ago
Barry Warsaw d5f9bf5ecf - Issue #8233: When run as a script, py_compile.py optionally takes a single 16 years ago
Barry Warsaw f7f2d6f51e - Issue #8233: When run as a script, py_compile.py optionally takes a single 16 years ago
Benjamin Peterson 5c86d45a52 Merged revisions 79070 via svnmerge from 16 years ago
Benjamin Peterson e30b3fa17a these lines can now be dispensed with 16 years ago
Benjamin Peterson 0088893447 kill py_compile's homemade encoding detection in favor of tokenize.detect_encoding() (see #8168) 16 years ago
Benjamin Peterson 32ca4547a4 Merged revisions 78971-78972 via svnmerge from 16 years ago
Benjamin Peterson f56813997f clean up files correctly 16 years ago
Benjamin Peterson 5a4c0f5cc2 remove mac 9 code 16 years ago
Antoine Pitrou fd036451bf #2834: Change re module semantics, so that str and bytes mixing is forbidden, 18 years ago
Christian Heimes dd15f6c315 Merged revisions 61239-61249,61252-61257,61260-61264,61269-61275,61278-61279,61285-61286,61288-61290,61298,61303-61305,61312-61314,61317,61329,61332,61344,61350-61351,61363-61376,61378-61379,61382-61383,61387-61388,61392,61395-61396,61402-61403 via svnmerge from 18 years ago
Georg Brandl a7bd27f0a8 #2225: return nonzero status code from py_compile if not all files could be compiled. 18 years ago
Georg Brandl 1a3284ed69 #1535: rename __builtin__ module to builtins. 18 years ago
Christian Heimes 8bd14fb398 Fixed #1403 where compileall and py_compile choked on an encoding header in a py file. Both modules need more unit tests. 18 years ago
Guido van Rossum bd4a63e091 A small tweak to avoid calling traceback.format_exception_only() with 19 years ago
Guido van Rossum 88079f472e Use the encoding specification when reading the source file. 19 years ago
Guido van Rossum d6ca546091 Make test_zipfile pass. 19 years ago
Guido van Rossum e2a383d062 Rip out 'long' and 'L'-suffixed integer literals. 19 years ago
Guido van Rossum b940e113bf SF patch 1631942 by Collin Winter: 19 years ago
Georg Brandl e537d6e93e Patch #1171150: add a newline to py_compile error output 21 years ago
Jack Jansen 98fc683719 Getting rid of macfs. 23 years ago
Tim Peters 2c60f7a136 Whitespace normalization. 23 years ago
Martin v. Löwis 0c6774d92b Patch #661719: Expose compilation errors as exceptions on request. 23 years ago
Fred Drake 61cf4407be Added a main() function and support to run this module as a script. 24 years ago
Fred Drake a96f1a3c08 Refactor: Remove some code that was obsoleted when this module was 24 years ago
Raymond Hettinger 32200aeac6 Replaced obsolete stat module constants with equivalent attributes 24 years ago
Raymond Hettinger 16e3c427f3 Replace boolean test with is None. 24 years ago
Jack Jansen 7b8c7546eb Mass checkin of universal newline support. 24 years ago
Skip Montanaro c62c81e013 __all__ for several more modules 25 years ago
Eric S. Raymond 6b71e747b1 String method conversion. 25 years ago
Martin v. Löwis ff1ce0f44f Support \r in source files. Closes bug #101425. 26 years ago
Guido van Rossum 54f22ed30b More trivial comment -> docstring transformations by Ka-Ping Yee, 26 years ago
Guido van Rossum 56440a58f7 Fix two bugs in the fstat() line, reported by Fredruk Lundh. 28 years ago
Guido van Rossum f984a65267 Fix suggested by Sjoerd (long ago!) to get a better error message when 28 years ago
Guido van Rossum 9279ec2504 On the mac, shouldn't change the creator+type of the *source* file! 28 years ago
Guido van Rossum 45e2fbc2e7 Mass check-in after untabifying all files that need it. 28 years ago
Guido van Rossum d8c5b8c90f Typo (coestring -> codestring) discovered by Mark Hammond. 28 years ago
Guido van Rossum 63566e2ef2 Added docstrings. 28 years ago
Guido van Rossum e6c128f428 Use fstat if we can; write MAGIC into file last. 29 years ago
Fred Drake ef8dc06c01 compile(): Use the __debug__ flag to determine the proper filename extension 29 years ago
Guido van Rossum 9b67621b66 Cast mtime gotten from stat() to long int -- else it won't work 30 years ago
Guido van Rossum dc42b8aa3d change Mac creator/type 30 years ago
Sjoerd Mullender 2e5168c9fc Get magic number from interpreter (using module imp). 31 years ago
Jack Jansen e99c824bad Mac-specific code for setting filetype was outdated. 31 years ago