@@ -1392,8 +1392,8 @@ def _findAlignment(sequence, alignment):
13921392 except StopIteration :
13931393 # Alignment string is longer than the actual sequence
13941394 # This can happen with different Biopython versions
1395- LOGGER .warn ('Alignment string longer than target sequence for {0}, '
1396- 'truncating alignment at position {1}' .format (target .getTitle (), i ))
1395+ LOGGER .warning ('Alignment string longer than target sequence for {0}, '
1396+ 'truncating alignment at position {1}' .format (target .getTitle (), i ))
13971397 break
13981398 amatch .append (ares .getResidue ())
13991399 if b not in gap_chars :
@@ -1403,8 +1403,8 @@ def _findAlignment(sequence, alignment):
14031403 # Chain sequence exhausted, need to remove the last target residue
14041404 # to keep amatch and bmatch synchronized
14051405 amatch .pop ()
1406- LOGGER .warn ('Alignment string longer than chain sequence for {0}, '
1407- 'truncating alignment at position {1}' .format (chain .getTitle (), i ))
1406+ LOGGER .warning ('Alignment string longer than chain sequence for {0}, '
1407+ 'truncating alignment at position {1}' .format (chain .getTitle (), i ))
14081408 break
14091409 bmatch .append (bres .getResidue ())
14101410 if a == b :
@@ -1417,8 +1417,8 @@ def _findAlignment(sequence, alignment):
14171417 bres = next (biter )
14181418 except StopIteration :
14191419 # Chain sequence exhausted
1420- LOGGER .warn ('Alignment string longer than chain sequence for {0}, '
1421- 'truncating alignment at position {1}' .format (chain .getTitle (), i ))
1420+ LOGGER .warning ('Alignment string longer than chain sequence for {0}, '
1421+ 'truncating alignment at position {1}' .format (chain .getTitle (), i ))
14221422 break
14231423 return amatch , bmatch , n_match , n_mapped
14241424
0 commit comments