Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

Commit

Permalink
Trying to fix Python 3 urllib differences.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmwright committed Feb 15, 2018
1 parent d8e3376 commit 4149fc7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cadquery/freecad_impl/importers.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def importStepFromURL(url):
if hasattr(urlreader, "urlopen"):
webFile = urlreader.urlopen(url)
else:
import urllib.request
webFile = urlreader.request.urlopen()

tempFile = tempfile.NamedTemporaryFile(suffix='.step', delete=False)
Expand Down

0 comments on commit 4149fc7

Please sign in to comment.