mirror of
https://github.com/Py-KMS-Organization/py-kms.git
synced 2025-07-26 03:28:16 +02:00
py-kms no longer supports python2 (#72)
* Removed python2 references * Removed python2 build files * Typo * Removed old python2 imports * Added IPv6 note to README Co-authored-by: Matteo ℱan <SystemRage@protonmail.com>
This commit is contained in:
parent
de61c660dd
commit
3d203cbe1d
9 changed files with 29 additions and 258 deletions
|
@ -5,22 +5,11 @@ import os
|
|||
import sys
|
||||
import threading
|
||||
from time import sleep
|
||||
|
||||
try:
|
||||
# Python 2.x imports
|
||||
import Tkinter as tk
|
||||
import ttk
|
||||
import tkMessageBox as messagebox
|
||||
import tkFileDialog as filedialog
|
||||
import tkFont
|
||||
except ImportError:
|
||||
# Python 3.x imports
|
||||
import tkinter as tk
|
||||
from tkinter import ttk
|
||||
from tkinter import messagebox
|
||||
from tkinter import filedialog
|
||||
import tkinter.font as tkFont
|
||||
|
||||
import tkinter as tk
|
||||
from tkinter import ttk
|
||||
from tkinter import messagebox
|
||||
from tkinter import filedialog
|
||||
import tkinter.font as tkFont
|
||||
from pykms_Server import srv_options, srv_version, srv_config, server_terminate, serverqueue, serverthread
|
||||
from pykms_GuiMisc import ToolTip, TextDoubleScroll, TextRedirect, ListboxOfRadiobuttons
|
||||
from pykms_GuiMisc import custom_background, custom_pages
|
||||
|
|
|
@ -6,18 +6,9 @@ import sys
|
|||
from collections import Counter
|
||||
from time import sleep
|
||||
import threading
|
||||
|
||||
try:
|
||||
# Python 2.x imports
|
||||
import Tkinter as tk
|
||||
import ttk
|
||||
import tkFont
|
||||
except ImportError:
|
||||
# Python 3.x imports
|
||||
import tkinter as tk
|
||||
from tkinter import ttk
|
||||
import tkinter.font as tkFont
|
||||
|
||||
import tkinter as tk
|
||||
from tkinter import ttk
|
||||
import tkinter.font as tkFont
|
||||
from pykms_Format import MsgMap, unshell_message, unformat_message
|
||||
|
||||
#------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
|
|
@ -10,20 +10,10 @@ import logging
|
|||
import os
|
||||
import threading
|
||||
import pickle
|
||||
|
||||
try:
|
||||
# Python 2 import.
|
||||
import SocketServer as socketserver
|
||||
import Queue as Queue
|
||||
import pykms_Selectors as selectors
|
||||
from pykms_Time import monotonic as time
|
||||
except ImportError:
|
||||
# Python 3 import.
|
||||
import socketserver
|
||||
import queue as Queue
|
||||
import selectors
|
||||
from time import monotonic as time
|
||||
|
||||
import socketserver
|
||||
import queue as Queue
|
||||
import selectors
|
||||
from time import monotonic as time
|
||||
import pykms_RpcBind, pykms_RpcRequest
|
||||
from pykms_RpcBase import rpcBase
|
||||
from pykms_Dcerpc import MSRPCHeader
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue