def get_rtd_version(version=None):
 version_str = get_docs_version(version=version, positions=3)
 return ('latest' if (version_str == 'dev') else ('stable-%s' % (version_str,)))

def get_rtd_version ( version = None ) : version_str = get_docs_version ( version = version , positions = 3 ) return ( 'latest' if ( version_str == 'dev' ) else ( 'stable-%s' % ( version_str , ) ) )
return the docs version string reported in the rtd site .