Skip to content

Commit

Permalink
Update pycatfile.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KazukiPrzyborowski committed Dec 21, 2024
1 parent 50ac253 commit 00ed8d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pycatfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ def GetTotalSize(file_list):
return total_size


def create_alias_function(prefix, base_name, suffix, target_function):
def create_alias_function_alt(prefix, base_name, suffix, target_function):
# Define a new function that wraps the target function
def alias_function(*args, **kwargs):
return target_function(*args, **kwargs)
Expand All @@ -739,7 +739,7 @@ def alias_function(*args, **kwargs):
globals()[function_name] = alias_function


def create_alias_function_alt(prefix, base_name, suffix, target_function):
def create_alias_function(prefix, base_name, suffix, target_function):
# Create the function name by combining the prefix, base name, and the suffix
# Use the format method for string formatting, compatible with Python 2 and 3
function_name = "{}{}{}".format(prefix, base_name, suffix)
Expand Down

0 comments on commit 00ed8d5

Please sign in to comment.