Skip to content

Commit

Permalink
Use str.join in _PIT.join
Browse files Browse the repository at this point in the history
  • Loading branch information
Pokechu22 committed Feb 17, 2022
1 parent c675203 commit 6781fbe
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions burger/toppings/packetinstructions.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,12 +705,9 @@ def operations(classloader, classname, classes, verbose, args=None,
return operations

@staticmethod
def join(arguments, seperator=", "):
"""Converts a list of object into a comma seperated list"""
buffer = ""
for arg in arguments:
buffer += "%s%s" % (arg, seperator)
return buffer[:-len(seperator)]
def join(arguments, separator=", "):
"""Converts a list of object into a comma separated list"""
return separator.join(str(arg) for arg in arguments)

@staticmethod
def find_next(operations, position, operation_search):
Expand Down

0 comments on commit 6781fbe

Please sign in to comment.