??
You're inside public_html, but wp-admin or wp-content was not found.
Savvy
W
olf -
MANAGER
Edit File: strutils.cpython-36.pyc
3 �dh[- � @ s8 d dd�Z d dd�Zdd� Zedkr4dd lZej� d S )Nc C sx dj | |d�}|dkrd}|r.|dj |d� }|rN|s>|d }|dj |d � }|rd|d j |d� }n|sl|rt|d }|S )ap Construct and return Maven coordinates. At least groupId (gid) and artifactId (aid) needs to be provided. >>> get_mvn_str("org.example", "artifact") 'org.example:artifact' >>> get_mvn_str("org.example", "artifact", ver="1") 'org.example:artifact:1' >>> get_mvn_str("org.example", "artifact", cla="test") 'org.example:artifact::test:' z{gid}:{aid})�gid�aidZjar� z:{ext})�ext�:z:{cla})�claz:{ver})�ver)�format)r r r r r �mvnstr� r �/usr/lib/python3.6/strutils.py�get_mvn_str# s r c C s^ t | ||||dk r|ndd�}dj|d�}|r>dj|d�| }|rZt|�}|dj|d� }|S ) a� Construct and return string representing RPM's "virtual provide" of a given Maven artifact. >>> get_rpm_str("org.example", "artifact") 'mvn(org.example:artifact)' >>> get_rpm_str("org.example", "artifact", pkg_ver="1") 'mvn(org.example:artifact) = 1' >>> get_rpm_str("org.example", "artifact", namespace="scl", compat_ver="1") 'scl-mvn(org.example:artifact:1)' N)r r r z mvn({mvnstr}))r z{ns}-)�nsz = {ver})r )r r �_sanitize_version) r r r r � namespaceZ compat_verZpkg_verr Zrpmstrr r r �get_rpm_strF s r c C s | r| j dd�S dS )a* Sanitize version so it can be properly handled by YUM/DNF. RPM package managers seem to have a problem with versioned "Provides" containing dashes, e.g. "mvn(g:a) = 1.0-SNAPSHOT". >>> _sanitize_version("1.0-SNAPSHOT") '1.0.SNAPSHOT' >>> _sanitize_version("1.0") '1.0' �-�.r )�replace)r r r r r a s r �__main__� )NNN)NNNNN)r r r �__name__ZdoctestZtestmodr r r r �<module># s #