diff --git a/mkdocs/utils.py b/mkdocs/utils.py index b257038b..ee54863f 100644 --- a/mkdocs/utils.py +++ b/mkdocs/utils.py @@ -9,7 +9,10 @@ and structure of the site and pages in the site. import os import shutil -from urlparse import urlparse +try: + from urlparse import urlparse +except ImportError: + from urllib.parse import urlparse def copy_file(source_path, output_path):