[Python-checkins] python/dist/src/Lib optparse.py,1.11,1.12
bcannon at users.sourceforge.net
bcannon at users.sourceforge.net
Tue Dec 7 04:25:21 CET 2004
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7014/Lib
Modified Files:
optparse.py
Log Message:
Change code in setup.py for parsing LDFLAGS and CPPFLAGS to use optparse
instead of getopt. Required making use of gettext._ as optional (optparse
changed OK'ed by Greg Ward in private email).
Index: optparse.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/optparse.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- optparse.py 27 Oct 2004 02:20:04 -0000 1.11
+++ optparse.py 7 Dec 2004 03:25:18 -0000 1.12
@@ -69,7 +69,10 @@
import sys, os
import types
import textwrap
-from gettext import gettext as _
+try:
+ from gettext import gettext as _
+except ImportError:
+ _ = lambda arg: arg
def _repr(self):
return "<%s at 0x%x: %s>" % (self.__class__.__name__, id(self), self)
More information about the Python-checkins
mailing list