Skip to content

Commit

Permalink
FixPythonSyntaxWarnings - Initial commit (#3172)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Wang (Centific Technologies Inc) <[email protected]>
  • Loading branch information
MichaelMWW and Michael Wang (Centific Technologies Inc) authored Oct 12, 2024
1 parent 87ed3ea commit 386381c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ def is_invalid_day_number_prefix(prefix: str) -> bool:
def pre_process_text_remove_superfluous_words(text: str, matcher: Pattern):
superfluous_word_matches = MatchingUtil.remove_sub_matches(matcher.find(text))

bias = 0[0]
bias = 0

for match in superfluous_word_matches:
text = text[match.start - bias: match.length]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def _negative_number_terms(self) -> Pattern:
pass

def extract(self, source: str) -> List[ExtractResult]:
if source is None or len(source.strip()) is 0:
if source is None or len(source.strip()) == 0:
return list()
result: List[ExtractResult] = list()
match_source = dict()
Expand Down

0 comments on commit 386381c

Please sign in to comment.