Skip to content

Commit

Permalink
i.modis.download: remove a call of non-existent function raw_input() (O…
Browse files Browse the repository at this point in the history
…SGeo#938)

in Python3, it was replaced by input()

also, drop the Python 2 syntax support
  • Loading branch information
pesekon2 authored and Corey White committed Sep 19, 2023
1 parent 6d3d78e commit 47aa66d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/imagery/i.modis/i.modis.download/i.modis.download.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,6 @@
grass.fatal("Not able to find the modis library directory.")
sys.path.append(path)

if sys.version_info[0] >= 3:
raw_input = input


def check_folder(folder):
"""Check if a folder it is writable by the user that launch the process"""
Expand Down Expand Up @@ -205,7 +202,7 @@ def main():

if check_folder(options["folder"]):
fold = options["folder"]
user = raw_input(_("Insert username: "))
user = input(_("Insert username: "))
passwd = getpass.getpass(_("Insert password: "))
else:
grass.fatal(
Expand Down

0 comments on commit 47aa66d

Please sign in to comment.