original_docstring: reads a file and returns the defined __version__ value
docstring: reads a file and returns the defined __version__ value
docstring_tokens: reads a file and returns the defined __version__ value
code: def find_version(*paths):
      '''reads a file and returns the defined __version__ value'''
      version_match = re.search(r"^__version__ ?= ?['\"]([^'\"]*)['\"]",
                                read(*paths), re.M)
      if version_match:
          return version_match.group(1)
      raise RuntimeError("Unable to find version string.")
code_tokens: def find_version ( * paths ) : version_match = re . search ( r"^__version__ ?= ?['\"]([^'\"]*)['\"]" , read ( * paths ) , re . M ) if version_match : return version_match . group ( 1 ) raise RuntimeError ( "Unable to find version string." )
short_docstring: reads a file and returns the defined __version__ value
short_docstring_tokens: reads a file and returns the defined __version__ value
comment: '''reads a file and returns the defined __version__ value'''