Serhiy Storchaka
172bb39452
bpo-22831: Use "with" to avoid possible fd leaks in tools (part 2). (GH-10927)
2019-03-30 08:33:02 +02:00
Berker Peksag
7aee3ecd57
Issue #21906 : Make Tools/scripts/md5sum.py work in Python 3.
...
Patch by Zachary Ware.
2014-07-11 20:42:18 +03:00
R David Murray
54ac832a24
#14490 , #14491 : add 'sundry'-style import tests for Tools/scripts.
...
This patch changes a few of the scripts to have __name__=='__main__'
clauses so that they are importable without running. Also fixes the
syntax errors revealed by the tests.
2012-04-04 21:28:14 -04:00
Éric Araujo
a0e92a8028
Fix missing or wrong shebangs and missing executable bits for scripts ( #10318 )
2011-07-26 18:01:08 +02:00
Benjamin Peterson
90f5ba538b
convert shebang lines: python -> python3
2010-03-11 22:53:45 +00:00
Guido van Rossum
b940e113bf
SF patch 1631942 by Collin Winter:
...
(a) "except E, V" -> "except E as V"
(b) V is now limited to a simple name (local variable)
(c) V is now deleted at the end of the except block
2007-01-10 16:19:56 +00:00
Tim Peters
1a3abcb648
This started opening files in text mode by default in the 2.3 release,
...
which is a disaster on Windows. Restored the binary default of all
previous releases. Also minor code cleanups.
Bugfix candidate!
2003-08-18 23:52:09 +00:00
Andrew M. Kuchling
4693d46fef
Rename sum5.py to md5sum.py, because sum5.py is more interesting
...
as an example program
2003-05-13 17:39:26 +00:00
Andrew M. Kuchling
343cbd0279
Use 2.1's .hexdigest() method
2002-04-17 21:50:03 +00:00
Guido van Rossum
9966e2c663
This is a trivial command line utility to print MD5 checksums.
...
I published it on the web as http://www.python.org/2.1/md5sum.py
so I thought I might as well check it in.
Works with Python 1.5.2 and later.
Works like the Linux tool ``mdfsum file ...'' except it doesn't take
any options or read stdin.
2001-06-22 16:05:48 +00:00