Skip to content

Commit

Permalink
Do not run code to test the Python version
Browse files Browse the repository at this point in the history
Besides, the shebang specifies `python3`.
  • Loading branch information
DimitriPapadopoulos authored and dlenski committed May 7, 2023
1 parent 79a1d52 commit 258f47c
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions test-globalprotect-login.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
#!/usr/bin/python3

from __future__ import print_function
from sys import stderr, version_info, platform
if (version_info >= (3, 0)):
from urllib.parse import urlparse, urlencode
raw_input = input
else:
from urlparse import urlparse
from urllib import urlencode
from sys import stderr, platform
from urllib.parse import urlparse, urlencode
import requests
import argparse
import getpass
Expand Down Expand Up @@ -68,7 +62,7 @@
else:
# same request params work for /global-protect/getconfig.esp as for /ssl-vpn/login.esp
if args.user == None:
args.user = raw_input('Username: ')
args.user = input('Username: ')
if args.password == None:
args.password = getpass.getpass('Password: ')
data=dict(user=args.user, passwd=args.password,
Expand Down

0 comments on commit 258f47c

Please sign in to comment.