Skip to content

Commit

Permalink
Fix invalid escape sequence (#327)
Browse files Browse the repository at this point in the history
When running Python 3.12, the invalid escape sequence here leads to a `SyntaxWarning`.
  • Loading branch information
max-muoto authored Jan 3, 2024
1 parent bea2600 commit 247a70f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nylas/client/neural_api_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def __init__(self, api):
RestfulModel.__init__(self, NeuralCleanConversation, api)

def extract_images(self):
pattern = "[\(']cid:(.*?)[\)']"
pattern = r"[\(']cid:(.*?)[\)']"
file_ids = re.findall(pattern, self.conversation)
files = []
for match in file_ids:
Expand Down

0 comments on commit 247a70f

Please sign in to comment.