mirror of
https://github.com/moparisthebest/HttpUploadComponent
synced 2024-11-22 00:42:21 -05:00
commit
2b321dc412
1
__init__.py
Normal file
1
__init__.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
# Make Python 2 happy
|
@ -0,0 +1 @@
|
|||||||
|
# Make Python 2 happy
|
BIN
plugins/__init__.pyc
Normal file
BIN
plugins/__init__.pyc
Normal file
Binary file not shown.
3
requirements.txt
Normal file
3
requirements.txt
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
PyYAML==3.11
|
||||||
|
sleekxmpp==1.3.1
|
||||||
|
wheel==0.24.0
|
10
server.py
10
server.py
@ -9,8 +9,14 @@ import random
|
|||||||
import os
|
import os
|
||||||
from threading import Thread
|
from threading import Thread
|
||||||
from threading import Lock
|
from threading import Lock
|
||||||
from http.server import HTTPServer, BaseHTTPRequestHandler
|
try:
|
||||||
from socketserver import ThreadingMixIn
|
# Python 3
|
||||||
|
from http.server import HTTPServer, BaseHTTPRequestHandler
|
||||||
|
from socketserver import ThreadingMixIn
|
||||||
|
except ImportError:
|
||||||
|
# Python 2
|
||||||
|
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
|
||||||
|
from SocketServer import ThreadingMixIn
|
||||||
import sleekxmpp
|
import sleekxmpp
|
||||||
from sleekxmpp.componentxmpp import ComponentXMPP
|
from sleekxmpp.componentxmpp import ComponentXMPP
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user