mirror of
https://github.com/mkdocs/mkdocs.git
synced 2026-03-27 09:58:31 +07:00
Add future import; remove unnecssary lines in compat.py
This commit is contained in:
@@ -7,9 +7,6 @@ PY2 = int(sys.version[0]) == 2
|
||||
if PY2:
|
||||
from urlparse import urljoin, urlparse, urlunparse
|
||||
import urllib
|
||||
urljoin = urljoin
|
||||
urlparse = urlparse
|
||||
urlunparse = urlunparse
|
||||
urlunquote = urllib.unquote
|
||||
|
||||
import SimpleHTTPServer as httpserver
|
||||
@@ -24,9 +21,6 @@ if PY2:
|
||||
basestring = basestring
|
||||
else: # PY3
|
||||
from urllib.parse import urljoin, urlparse, urlunparse, unquote
|
||||
urljoin = urljoin
|
||||
urlparse = urlparse
|
||||
urlunparse = urlunparse
|
||||
urlunquote = unquote
|
||||
|
||||
import http.server as httpserver
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
from __future__ import print_function
|
||||
import subprocess
|
||||
import os
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# coding: utf-8
|
||||
|
||||
from __future__ import print_function
|
||||
import os
|
||||
|
||||
config_text = 'site_name: My Docs\n'
|
||||
|
||||
Reference in New Issue
Block a user