from __future__ import print_function
-import random, crypt
+try:
+ import crypt
+except ImportError: # Python 3.13+
+ crypt = None
+import random
saltchars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcedfghijklmnopqrstuvwxyz0123456789./"
print("BAD password")
if __name__ == "__main__":
- test()
+ if crypt is not None:
+ test()
from ftplib import FTP
-from telnetlib import IAC
+try:
+ from telnetlib import IAC
+except ImportError: # Python 3.13+
+ IAC = bytes([255]) # "Interpret As Command"
class TelnetFTP(FTP):
setup(
name = "m_lib",
- version = "3.1.0.post2",
+ version = "3.1.1",
description = "Broytman Library for Python",
long_description = "Broytman Library for Python, Copyright (C) 1996-2023 PhiloSoft Design",
long_description_content_type="text/plain",
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
+ 'Programming Language :: Python :: 3.13',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
],