mirror of
https://github.com/dart-lang/sdk
synced 2024-10-06 14:29:50 +00:00
Python Dict throws an exception if a key is not found. I needed to use the has_key function instead. TBR=danrubel
Review URL: http://codereview.chromium.org//8918030 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2368 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
parent
27c00758c9
commit
4adf860b73
|
@ -59,7 +59,7 @@ def Usage(progname):
|
|||
|
||||
def main(argv):
|
||||
#allow local editor builds to deploy to a different bucket
|
||||
if os.environ['DART_LOCAL_BUILD']:
|
||||
if os.environ.has_key('DART_LOCAL_BUILD'):
|
||||
gsdir = os.environ
|
||||
else:
|
||||
gsdir = GS_DIR
|
||||
|
|
Loading…
Reference in a new issue