mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
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:
parent
d83a261290
commit
2d23a368c7
1 changed files with 5 additions and 1 deletions
|
|
@ -3,7 +3,11 @@ import fabric.contrib.project as project
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
import sys
|
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
|
from pelican.server import ComplexHTTPRequestHandler
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue