Add future import; remove unnecssary lines in compat.py

This commit is contained in:
sloria
2014-07-23 00:07:00 -04:00
parent dac0d4b748
commit 25188f0a5b
3 changed files with 2 additions and 7 deletions

View File

@@ -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

View File

@@ -1,3 +1,4 @@
from __future__ import print_function
import subprocess
import os

View File

@@ -1,5 +1,5 @@
# coding: utf-8
from __future__ import print_function
import os
config_text = 'site_name: My Docs\n'