Commit Graph

72 Commits

Author SHA1 Message Date
Serhiy Storchaka
8f8ec92de8 Issue #19936: Added executable bits or shebang lines to Python scripts which
requires them.  Disable executable bits and shebang lines in test and
benchmark files in order to prevent using a random system python, and in
source files of modules which don't provide command line interface.  Fixed
shebang lines in the unittestgui and checkpip scripts.
2014-01-16 17:33:23 +02:00
Serhiy Storchaka
b992a0e102 Issue #19936: Added executable bits or shebang lines to Python scripts which
requires them.  Disable executable bits and shebang lines in test and
benchmark files in order to prevent using a random system python, and in
source files of modules which don't provide command line interface.  Fixed
shebang line to use python3 executable in the unittestgui script.
2014-01-16 17:15:49 +02:00
Brett Cannon
cd171c8e92 Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a) 2013-07-04 17:43:24 -04:00
Brett Cannon
0a140668fa Issue #18200: Update the stdlib (except tests) to use
ModuleNotFoundError.
2013-06-13 20:57:26 -04:00
Ezio Melotti
10f89329ad #17143: merge with 3.3. 2013-02-15 21:22:22 +02:00
Ezio Melotti
23e043fdcd #17143: fix a missing import in the trace module. Initial patch by Berker Peksag. 2013-02-15 21:20:50 +02:00
Andrew Svetlov
f7a17b48d7 Replace IOError with OSError (#16715) 2012-12-25 16:47:37 +02:00
Florent Xicluna
61ea12c9a0 trace: remove unused imports. 2012-07-07 17:03:52 +02:00
Victor Stinner
949d8c986e Close #14690: Use monotonic clock instead of system clock in the sched,
subprocess and trace modules.
2012-05-30 13:30:32 +02:00
Vinay Sajip
7ded1f0f69 Implemented PEP 405 (Python virtual environments). 2012-05-26 03:45:29 +01:00
Brett Cannon
9fe92d1de5 Make the trace module ignore modules whose names start with "<" and
end with ">", i.e. follow convention.
2012-04-10 21:05:53 -04:00
Éric Araujo
e7d36fe0a6 Prevent deprecation warning 2011-04-17 16:48:52 +02:00
Alexander Belopolsky
44454afbe3 Issue #10371: Deprecated undocumented functions in the trace module. 2010-11-20 18:21:07 +00:00
Victor Stinner
58c0752a33 Issue #10335: Add tokenize.open(), detect the file encoding using
tokenize.detect_encoding() and open it in read only mode.
2010-11-09 01:08:59 +00:00
Alexander Belopolsky
6672ea9424 Streamlined code in trace.Ignore and added unit tests. 2010-11-08 18:32:40 +00:00
Victor Stinner
64bc3b28a3 Issue #10329: The trace module writes reports using the input Python script
encoding, instead of the locale encoding. Patch written by Alexander
Belopolsky.
2010-11-07 15:47:36 +00:00
Alexander Belopolsky
25b5741383 Issue #10330: trace module can now be used with python built without threads. 2010-11-06 01:31:16 +00:00
Benjamin Peterson
b2fda23922 close files correctly 2010-10-30 23:51:34 +00:00
Alexander Belopolsky
eebccfb10c Reverted inadvertent change that slipped into r85695 2010-10-18 15:11:33 +00:00
Alexander Belopolsky
4a98e3b6d0 Issue #10117: Tools/scripts/reindent.py now accepts source files that
use encoding other than ASCII or UTF-8.  Source encoding is preserved
when reindented code is written to a file.
2010-10-18 14:43:38 +00:00
Alexander Belopolsky
0ae33611fa Issue 9941: Minor code cleanup before implementing the context manager feature:
- Eliminated code repetition between run and runctx;
  - Removed redundant calls to dict.key;
  - Removed unused "blabbed" attribute;
  - Simplified the loop in  write_results_file().
2010-09-27 15:49:20 +00:00
Alexander Belopolsky
ff09ce211f Issue #9936: Fixed executable lines' search in the trace module. 2010-09-24 18:03:12 +00:00
Alexander Belopolsky
4d7701729c Issue #9315: Fix for the trace module to record correct class name
when tracing methods.  Unit tests. Patch by Eli Bendersky.
2010-09-13 18:14:34 +00:00
Georg Brandl
dc50c696ab Fix softspace relic. 2010-08-02 12:40:22 +00:00
Georg Brandl
24085d7940 Get rid of spurious "threading" entries in trace output. 2010-08-02 12:36:24 +00:00