From 2d23a368c7e4ec6c173ae8a44be02cf700e5533a Mon Sep 17 00:00:00 2001 From: Brian Levin Date: Fri, 19 Aug 2016 12:45:15 -0400 Subject: [PATCH] Fabric file not compatible with python 3 Python 3 changes the name of SocketServer to socketserver. This fixes the naming error. --- pelican/tools/templates/fabfile.py.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pelican/tools/templates/fabfile.py.in b/pelican/tools/templates/fabfile.py.in index 5481f84f..9e3e622e 100644 --- a/pelican/tools/templates/fabfile.py.in +++ b/pelican/tools/templates/fabfile.py.in @@ -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