parameters: ()
return_statement: return 0
docstring: Get a -r### off of PKG-INFO Version in case this is an sdist of
      a subversion revision.
docstring_summary: Get a -r### off of PKG-INFO Version in case this is an sdist of
      a subversion revision.
docstring_tokens: Get a - r### off of PKG - INFO Version in case this is an sdist of a subversion revision .
function: def get_pkg_info_revision():
      """
      Get a -r### off of PKG-INFO Version in case this is an sdist of
      a subversion revision.
      """
      warnings.warn("get_pkg_info_revision is deprecated.", DeprecationWarning)
      if os.path.exists('PKG-INFO'):
          with io.open('PKG-INFO') as f:
              for line in f:
                  match = re.match(r"Version:.*-r(\d+)\s*$", line)
                  if match:
                      return int(match.group(1))
      return 0
function_tokens: def get_pkg_info_revision ( ) : warnings . warn ( "get_pkg_info_revision is deprecated." , DeprecationWarning ) if os . path . exists ( 'PKG-INFO' ) : with io . open ( 'PKG-INFO' ) as f : for line in f : match = re . match ( r"Version:.*-r(\d+)\s*$" , line ) if match : return int ( match . group ( 1 ) ) return 0