Skip to content

Commit

Permalink
Make Renamer picklable
Browse files Browse the repository at this point in the history
Closes #732
  • Loading branch information
marcelm committed Oct 4, 2023
1 parent 0a52ae3 commit e173cb4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cutadapt/modifiers.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,9 @@ def __init__(self, template: str):
def __repr__(self):
return f"{self.__class__.__name__}('{self._template}')"

def __reduce__(self):
return Renamer, (self._template,)

def compile_rename_function(self):
"""
Create the function that computes a new name
Expand Down

0 comments on commit e173cb4

Please sign in to comment.