code: def get_version(filename='scanf.py'):
      
      version = '' 
      with open(filename, 'r') as fp:
          for line in fp:
              m = re.search('__version__ .* ''(.*)''', line)
              if m is not None:
                  version = (m.group(1)).strip('\'')
                  break
      return version
docs: Extract version information from source code