Skip to content

Commit

Permalink
bump to version 2.3.2.3 (fix #193)
Browse files Browse the repository at this point in the history
  • Loading branch information
C0D3D3V committed Mar 28, 2024
1 parent 9a543b6 commit 24e0562
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 40 deletions.
78 changes: 39 additions & 39 deletions moodle_dl/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ def unlock(dir_path: str):
class Log:
"""
Logs a given string to output with colors
:param logString: the string that should be logged
:param log_string: the string that should be logged
The string functions returns the strings that would be logged.
Expand All @@ -879,80 +879,80 @@ class Log:
"""

@staticmethod
def info_str(logString: str):
return COLOR_SEQ % WHITE + logString + RESET_SEQ
def info_str(log_string: str):
return COLOR_SEQ % WHITE + log_string + RESET_SEQ

@staticmethod
def success_str(logString: str):
return COLOR_SEQ % GREEN + logString + RESET_SEQ
def success_str(log_string: str):
return COLOR_SEQ % GREEN + log_string + RESET_SEQ

@staticmethod
def green_str(logString: str):
return COLOR_SEQ % GREEN + logString + RESET_SEQ
def green_str(log_string: str):
return COLOR_SEQ % GREEN + log_string + RESET_SEQ

@staticmethod
def warning_str(logString: str):
return COLOR_SEQ % YELLOW + logString + RESET_SEQ
def warning_str(log_string: str):
return COLOR_SEQ % YELLOW + log_string + RESET_SEQ

@staticmethod
def yellow_str(logString: str):
return COLOR_SEQ % YELLOW + logString + RESET_SEQ
def yellow_str(log_string: str):
return COLOR_SEQ % YELLOW + log_string + RESET_SEQ

@staticmethod
def error_str(logString: str):
return COLOR_SEQ % RED + logString + RESET_SEQ
def error_str(log_string: str):
return COLOR_SEQ % RED + log_string + RESET_SEQ

@staticmethod
def debug_str(logString: str):
return COLOR_SEQ % CYAN + logString + RESET_SEQ
def debug_str(log_string: str):
return COLOR_SEQ % CYAN + log_string + RESET_SEQ

@staticmethod
def cyan_str(logString: str):
return COLOR_SEQ % CYAN + logString + RESET_SEQ
def cyan_str(log_string: str):
return COLOR_SEQ % CYAN + log_string + RESET_SEQ

@staticmethod
def blue_str(logString: str):
return COLOR_SEQ % BLUE + logString + RESET_SEQ
def blue_str(log_string: str):
return COLOR_SEQ % BLUE + log_string + RESET_SEQ

@staticmethod
def magenta_str(logString: str):
return COLOR_SEQ % MAGENTA + logString + RESET_SEQ
def magenta_str(log_string: str):
return COLOR_SEQ % MAGENTA + log_string + RESET_SEQ

@staticmethod
def info(logString: str):
print(Log.info_str(logString))
def info(log_string: str):
print(Log.info_str(log_string))

@staticmethod
def success(logString: str):
print(Log.success_str(logString))
def success(log_string: str):
print(Log.success_str(log_string))

@staticmethod
def warning(logString: str):
print(Log.warning_str(logString))
def warning(log_string: str):
print(Log.warning_str(log_string))

@staticmethod
def yellow(logString: str):
print(Log.yellow_str(logString))
def yellow(log_string: str):
print(Log.yellow_str(log_string))

@staticmethod
def error(logString: str):
print(Log.error_str(logString))
def error(log_string: str):
print(Log.error_str(log_string))

@staticmethod
def debug(logString: str):
print(Log.debug_str(logString))
def debug(log_string: str):
print(Log.debug_str(log_string))

@staticmethod
def blue(logString: str):
print(Log.blue_str(logString))
def blue(log_string: str):
print(Log.blue_str(log_string))

@staticmethod
def magenta(logString: str):
print(Log.magenta_str(logString))
def magenta(log_string: str):
print(Log.magenta_str(log_string))

@staticmethod
def cyan(logString: str):
print(Log.cyan_str(logString))
def cyan(log_string: str):
print(Log.cyan_str(log_string))


class Cutie:
Expand Down
2 changes: 1 addition & 1 deletion moodle_dl/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.3.2.2'
__version__ = '2.3.2.3'

0 comments on commit 24e0562

Please sign in to comment.