This pull request upgrades the yo_scheduler script from Python 2 to Python 3. The primary objective is to ensure compatibility with modern Python environments while maintaining the existing functionality and structure of the script.
Changes Made
Shebang Line Update: Updated the shebang line to use #!/usr/bin/env python3.
Print Statement Conversion: Updated print statements to the Python 3 print() function.
Exception Handling: Converted except syntax to be compatible with Python 3.
Import Statements: Updated imports to comply with Python 3 standards.
Dictionary Methods: Replaced dictionary method calls (e.g., dict.iteritems() to dict.items()).
String Handling: Ensured all string handling is compatible with Python 3, including the use of bytes where necessary.
Function Adjustments: Made necessary adjustments to functions and modules to ensure compatibility with Python 3 libraries.
This pull request upgrades the
yo_scheduler
script from Python 2 to Python 3. The primary objective is to ensure compatibility with modern Python environments while maintaining the existing functionality and structure of the script.Changes Made
#!/usr/bin/env python3
.print()
function.except
syntax to be compatible with Python 3.dict.iteritems()
todict.items()
).bytes
where necessary.