Machine imports withou try except

Python 2 is not supported now. The import is the same in try and except.
This commit is contained in:
Rodolfo García Peñas (kix) 2020-08-29 09:00:30 +02:00
parent 46c677151a
commit 1618505d3b

View File

@ -13,10 +13,7 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software # along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
try: from urllib.parse import urlencode
from urllib.parse import urlencode
except ImportError: # python3
from urllib.parse import urlencode
import sys import sys
import time import time
import logging import logging