Fabric file not compatible with python 3

Python 3 changes the name of SocketServer to socketserver. This fixes the naming error.
This commit is contained in:
Brian Levin 2016-08-19 12:45:15 -04:00 committed by GitHub
commit 2d23a368c7

View file

@ -3,7 +3,11 @@ import fabric.contrib.project as project
import os
import shutil
import sys
import SocketServer
if sys.version_info.major == 2:
import SocketServer
elif sys.version_info.major == 3:
import socketserver as SocketServer
from pelican.server import ComplexHTTPRequestHandler