trnslator.utils.checkStr

trnslator.utils.checkStr(datafile, string, begin_line=0)[source]

Find the first occurrence of a string and return its line number

Returns: the list index containing the string

Parameters
  • datafile (list-like) – a list-like object

  • string (str) – the string to find in the txt file