From: stevenknight Date: Wed, 1 Oct 2008 14:58:22 +0000 (+0000) Subject: Python 2.2 portability: no dictionary pop() method. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6d653fa768be99c67040cbe0898290be4fafe343;p=scons.git Python 2.2 portability: no dictionary pop() method. git-svn-id: http://scons.tigris.org/svn/scons/trunk@3527 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/src/engine/SCons/Tool/dvipdf.py b/src/engine/SCons/Tool/dvipdf.py index 05c92511..642b6ac7 100644 --- a/src/engine/SCons/Tool/dvipdf.py +++ b/src/engine/SCons/Tool/dvipdf.py @@ -57,7 +57,7 @@ def DviPdfPsFunction(XXXDviAction, target = None, source= None, env=None): if saved_env['TEXPICTS'] is _null: try: - env['ENV'].pop('TEXPICTS') + del env['ENV']['TEXPICTS'] except KeyError: pass # was never set else: