Commit 07d1688251b9b6c8285d620964665152f2022295
1 parent
ddf1559d
Exists in
master
deleted print password in the log...
Showing
1 changed file
with
1 additions
and
4 deletions
Show diff stats
download_landsat_scene.py
... | ... | @@ -21,7 +21,6 @@ class OptionParser (optparse.OptionParser): |
21 | 21 | |
22 | 22 | def connect_earthexplorer_proxy(proxy_info,usgs): |
23 | 23 | |
24 | - print "proxy_info=", proxy_info | |
25 | 24 | # contruction d'un "opener" qui utilise une connexion proxy avec autorisation |
26 | 25 | proxy_support = urllib2.ProxyHandler({"http" : "http://%(user)s:%(pass)s@%(host)s:%(port)s" % proxy_info, |
27 | 26 | "https" : "http://%(user)s:%(pass)s@%(host)s:%(port)s" % proxy_info}) |
... | ... | @@ -29,7 +28,7 @@ def connect_earthexplorer_proxy(proxy_info,usgs): |
29 | 28 | |
30 | 29 | # installation |
31 | 30 | urllib2.install_opener(opener) |
32 | - | |
31 | + | |
33 | 32 | # parametres de connection |
34 | 33 | params = urllib.urlencode(dict(username=usgs['account'], password=usgs['passwd'])) |
35 | 34 | |
... | ... | @@ -182,11 +181,9 @@ if not os.path.exists(rep): |
182 | 181 | try: |
183 | 182 | f=file(options.usgs) |
184 | 183 | (account,passwd)=f.readline().split(' ') |
185 | - print account,passwd | |
186 | 184 | if passwd.endswith('\n'): |
187 | 185 | passwd=passwd[:-1] |
188 | 186 | usgs={'account':account,'passwd':passwd} |
189 | - print usgs | |
190 | 187 | f.close() |
191 | 188 | except : |
192 | 189 | print "error with usgs password file" | ... | ... |