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:
parent
46c677151a
commit
1618505d3b
@ -13,9 +13,6 @@
|
|||||||
# 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
|
|
||||||
except ImportError: # python3
|
|
||||||
from urllib.parse import urlencode
|
from urllib.parse import urlencode
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
|
Loading…
Reference in New Issue
Block a user