diff --git a/src/Mod/BIM/ArchCommands.py b/src/Mod/BIM/ArchCommands.py index d06978bb22..4ee234cc2a 100644 --- a/src/Mod/BIM/ArchCommands.py +++ b/src/Mod/BIM/ArchCommands.py @@ -759,10 +759,7 @@ def download(url, force=False): """download(url,force=False): downloads a file from the given URL and saves it in the macro path. Returns the path to the saved file. If force is True, the file will be downloaded again evn if it already exists.""" - try: - from urllib.request import urlopen - except ImportError: - from urllib2 import urlopen + from urllib.request import urlopen import os name = url.split("/")[-1]