User/Alvonruff/2to3
Revision as of 12:34, 24 April 2023 by Alvonruff (talk | contribs) (Created page with "* Use 2to3 in a manner the same as futurize. This produces results suitable for python3. * Update to the official MySQL User:Alvonruff/mysql.connector. There is no python...")
- Use 2to3 in a manner the same as futurize. This produces results suitable for python3.
- Update to the official MySQL User:Alvonruff/mysql.connector. There is no python3 support for MySQLdb, which is our current connector. Moving to a new connector is a prerequisite.
- Use of md5 needs to be replaced with hashlib
- Records that return DATETIME fields cannot simply be indexed - they must use built-in datetime methods:
- year = field.year
- month = field.month
- day = field.day
- String operator usage:
- string.replace() must be changed to str.replace()
- string.strip() must be changed to str.strip()
- db.escape_string