Skip to content

Commit

Permalink
Use search, not match.
Browse files Browse the repository at this point in the history
  • Loading branch information
tslmy committed Dec 22, 2022
1 parent 2b9c744 commit 85e1a08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyjami/java_symbol_migration_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ def migrate(
lines = f.readlines()
is_deprecation_annotated = False
for i, line in enumerate(lines):
if symbol_declaration_pattern.match(line):
if symbol_declaration_pattern.search(line):
lines.insert(
i,
f'@Deprecated(since="{datetime.now().strftime("%c")}", forRemoval=true)',
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pyjami"
version = "0.1.4"
version = "0.1.5"
description = "Migrate Java code with Python."
authors = ["Mingyang Li <mingyli@ebay.com>"]
readme = "README.md"
Expand Down

0 comments on commit 85e1a08

Please sign in to comment.