Commit Graph

90 Commits

Author SHA1 Message Date
Guido van Rossum be19ed77dd Fix most trivially-findable print statements.
There's one major and one minor category still unfixed:
doctests are the major category (and I hope to be able to augment the
refactoring tool to refactor bona fide doctests soon);
other code generating print statements in strings is the minor category.

(Oh, and I don't know if the compiler package works.)
2007-02-09 05:37:30 +00:00
Guido van Rossum e2a383d062 Rip out 'long' and 'L'-suffixed integer literals.
(Rough first cut.)
2007-01-15 16:59:06 +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
Georg Brandl 7cae87ca7b Patch #1550800: make exec a function. 2006-09-06 06:51:57 +00:00
Tim Peters 182b5aca27 Whitespace normalization, via reindent.py. 2004-07-18 06:16:08 +00:00
Sjoerd Mullender 47db16580a Fixed invalid syntax. 2004-03-03 16:34:31 +00:00
Walter Dörwald 70a6b49821 Replace backticks with repr() or "%r"
From SF patch #852334.
2004-02-12 17:35:32 +00:00
Guido van Rossum dd8ddacd94 Fix a typo in the mktemp -> mkstemp patch. 2002-08-10 00:17:59 +00:00
Guido van Rossum 3b0a3293c3 Massive changes from SF 589982 (tempfile.py rewrite, by Zack
Weinberg).  This changes all uses of deprecated tempfile functions to
the recommended ones.
2002-08-09 16:38:32 +00:00
Martin v. Löwis bbe500e5d3 Remove obsolete entries from regen scripts. 2001-07-31 08:47:55 +00:00
Fred Drake 48871f2a6e Remove the old platform-specific FCNTL.py modules; these are no longer
needed now that fcntl exports the constants.
2001-05-09 21:15:06 +00:00
Fred Drake ddd802cbd7 Replace all the platform-specific TERMIOS modules with a portable version
based on the termios module.  The only added "feature" is the deprecation
warning it spits out.
2001-02-27 21:35:40 +00:00
Eric S. Raymond dcd3a875a5 String method conversion. 2001-02-09 16:45:10 +00:00
Fred Drake 0c07b50811 The socket constants have been moved to the socket module for a long time;
the standard library does not use the SOCKET module any more, and it is
not defined for all platforms (Windows, in particular).
2001-02-02 02:51:21 +00:00
Fred Drake 132dce2246 Update the code to better reflect recommended style:
Use != instead of <> since <> is documented as "obsolescent".
Use "is" and "is not" when comparing with None or type objects.
2000-12-12 23:11:42 +00:00
Fred Drake def003845b Convert some old-style string exceptions to class exceptions. 2000-08-18 14:59:33 +00:00
Thomas Wouters c533e4a012 Bugfix by Rob W. W. Hooft, from his spelling fixes patch. This one is a
genuine bug, so I checked it in separately.
2000-07-16 11:57:20 +00:00
Jeremy Hylton a05e293a21 typos fixed by Rob Hooft 2000-06-28 14:48:01 +00:00
Guido van Rossum 4edf656402 Remove stuff with unsure copyright status 1999-03-12 19:31:51 +00:00
Guido van Rossum 2c2f731daf [Sjoerd Mullender]
Don't use CL module since all constants are now in cl.
1998-08-07 15:28:23 +00:00
Guido van Rossum fa6e254b34 Mass check-in after untabifying all files that need it. 1998-03-26 20:23:01 +00:00
Guido van Rossum 2830dcc15c Get rid of the Emacs cruft now that Python-mode guess the desired settings! 1998-03-26 19:52:46 +00:00
Guido van Rossum 9694fcab53 Convert all remaining *simple* cases of regex usage to re usage. 1997-10-22 21:00:49 +00:00
Guido van Rossum 25bcdb0e56 Added QUADRO. 1996-12-13 00:19:15 +00:00
Guido van Rossum 8c1529dc29 regenerated files from IRIX 5.3 headers 1996-06-11 15:03:14 +00:00
Guido van Rossum dc3372e943 new exec syntax 1995-09-18 22:00:37 +00:00
Guido van Rossum aada0d51a5 Initial revision 1995-09-18 22:00:15 +00:00
Guido van Rossum 97162b5b95 exec() -> exec 1995-08-28 02:54:01 +00:00
Guido van Rossum 9d8c5a4cf3 add errno.h 1995-08-28 02:53:41 +00:00
Sjoerd Mullender c8718c3ddd Backward compatibity module for constants from cl.h include file. The
values are gotten from the cl module.  CL_old is there in case cl
doesn't exist.
1995-05-17 11:18:22 +00:00
Sjoerd Mullender d9b6b5c756 Write track artist info if given. 1995-03-01 10:03:08 +00:00
Sjoerd Mullender 992ff06e98 Made play method more robust by adding a try-finally. 1995-02-01 14:24:32 +00:00
Sjoerd Mullender 3d697ce447 Support for album.notes and trackN.artist via notes and trackartist
instance variables.
1995-02-01 14:23:37 +00:00
Guido van Rossum 73b20df99e Added TERMIOS module 1994-09-12 10:39:08 +00:00
Sjoerd Mullender e202c38d76 Can now also give a hashed ID to Cddb. 1994-09-06 16:19:03 +00:00
Guido van Rossum 9e1e149a5f * Lib/sgi/flp.py: fix caching bug (always write the whole file to
the cache!)
1994-08-23 13:29:21 +00:00
Guido van Rossum b6775db241 Merge alpha100 branch back to main trunk 1994-08-01 11:34:53 +00:00
Guido van Rossum 169b61295a Constants from <sys/wait.h> (IRIX 5 version) 1994-06-03 15:39:39 +00:00
Guido van Rossum f624666eb3 Generate some files automatically from system files 1994-05-23 12:15:33 +00:00
Guido van Rossum 70f1418d35 New files (not really...) 1993-12-29 16:35:41 +00:00
Guido van Rossum 7bc817d5ba * Mass change: get rid of all init() methods, in favor of __init__()
constructors.  There is no backward compatibility.  Not everything has
  been tested.
* aiff.{py,doc}: deleted in favor of aifc.py (which contains its docs as
  comments)
1993-12-17 15:25:27 +00:00
Sjoerd Mullender b2e358d433 Use __init__ instead of init.
Also use CDDB_PATH and CDDB_WRITE_DIR environment variables in cddb.py.
1993-11-08 15:10:43 +00:00
Sjoerd Mullender 35fe6ec4cf Not everyone has Guido's bin in his/her PATH... 1993-10-11 12:39:15 +00:00
Sjoerd Mullender c9d73d1f64 Implemented support for CDDB_PATH and CDDB_WRITE_DIR environment
variables.
Added auxiliary routine tochash to convert a table-of-contents to a
hashed toc.
1993-09-27 12:36:01 +00:00
Guido van Rossum df5638662d * posixpath.py: Fix border cases in normpath ('/foo/..' should return '/')
* ftplib.py: made cwd() use 'CDUP' when dirname is '..'
* FL.py: added new constant FL_PLACE_FULLSCREEN
1993-07-06 15:19:36 +00:00
Guido van Rossum 5cfa5dfe97 * calendar.py: all libC functionality now moved to built-in time module
* imghdr.py: added jpeg recognition
* torgb.py: added jpeg conversion
* tzparse.py: use functions from time instead of calendar
* whatsound.py: add /ufs/guido/biin/sgi to $PATH when calling 'whatsound'
1993-06-23 09:30:50 +00:00
Guido van Rossum e6dc0ca122 Initial revision 1993-06-03 14:39:09 +00:00
Guido van Rossum d316607732 * ftplib.py: added abort() command (sends oob data).
* Several modules: change "class C(): ..." to "class C: ...".
* flp.py: support for frozen forms.
* Added string.find() which is like index but returns -1 if not found
1993-05-24 14:16:22 +00:00
Sjoerd Mullender 04321d1e47 Use type(xxx) in stead of except TypeError. 1993-03-29 10:50:29 +00:00
Sjoerd Mullender 8562c4cee6 Added some error checking. 1993-03-29 10:49:59 +00:00