67 Commits

Author SHA1 Message Date
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
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
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
Georg Brandl
120d633871 #4943: do not try to include drive letters (and colons) when looking for a probably module name. 2010-08-01 14:38:17 +00:00
Georg Brandl
8f9f466505 #1690103: fix initial namespace for code run with trace.main(). 2010-08-01 08:35:29 +00:00
Alexander Belopolsky
3f8ecab589 Issue #9323: Fixed a bug in trace.py that resulted in loosing the name
of the script being traced.  Patch by Eli Bendersky.
2010-07-21 17:43:42 +00:00
Alexander Belopolsky
533a167a71 Issue #9282: Fixed --listfuncs option of trace.py. Thanks Eli
Bendersky for the patch.
2010-07-20 19:55:18 +00:00
Benjamin Peterson
90f5ba538b convert shebang lines: python -> python3 2010-03-11 22:53:45 +00:00