Skip to content

Commit

Permalink
fix(RetroPath2): remove regex deprecation warning
Browse files Browse the repository at this point in the history
using raw string r"..."
  • Loading branch information
tduigou committed Feb 24, 2022
1 parent 1959e09 commit b8d052e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion retropath2_wrapper/RetroPath2.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def check_inchi_from_file(
# Other (sub-)layers
# matches:
# (/.+)? --> if '/' is present, then at least one character/symbol is mandatory
if match('InChI=1(S)?/(([a-z|[A-Z])+\d*)+(/.+)?$', inchi) is None:
if match(r'InChI=1(S)?/(([a-z|[A-Z])+\d*)+(/.+)?$', inchi) is None:
logger.error(' {inchi} is not a valid InChI notation'.format(inchi=inchi))
return ''

Expand Down

0 comments on commit b8d052e

Please sign in to comment.