[GRASS-SVN] r71115 - grass-addons/grass7/raster/r.modis/r.modis.download

svn_grass at osgeo.org svn_grass at osgeo.org
Tue May 23 02:47:46 PDT 2017


Author: lucadelu
Date: 2017-05-23 02:47:46 -0700 (Tue, 23 May 2017)
New Revision: 71115

Modified:
   grass-addons/grass7/raster/r.modis/r.modis.download/r.modis.download.py
Log:
r.modis.download: replace raw_input with getpass for stdin password

Modified: grass-addons/grass7/raster/r.modis/r.modis.download/r.modis.download.py
===================================================================
--- grass-addons/grass7/raster/r.modis/r.modis.download/r.modis.download.py	2017-05-23 09:01:54 UTC (rev 71114)
+++ grass-addons/grass7/raster/r.modis/r.modis.download/r.modis.download.py	2017-05-23 09:47:46 UTC (rev 71115)
@@ -174,10 +174,11 @@
     # set username, password and folder if settings are insert by stdin
     if options['settings'] == '-':
         if options['folder'] != '':
+            import getpass
             if check(options['folder']):
                 fold = options['folder']
             user = raw_input(_('Insert username: '))
-            passwd = raw_input(_('Insert password: '))
+            passwd = getpass.getpass(_('Insert password: '))
         else:
             grass.fatal(_("Set folder parameter when using stdin for passing "
                           "the username and password"))



More information about the grass-commit mailing list