Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1c8fc74

Browse filesBrowse files
committed
Remove _to_dict() function
1 parent 4482f8c commit 1c8fc74
Copy full SHA for 1c8fc74

File tree

1 file changed

+0
-8
lines changed
Filter options

1 file changed

+0
-8
lines changed

‎semver.py

Copy file name to clipboardExpand all lines: semver.py
-8Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -593,14 +593,6 @@ def isvalid(cls, version):
593593
return False
594594

595595

596-
def _to_dict(obj):
597-
if isinstance(obj, VersionInfo):
598-
return obj.to_dict()
599-
elif isinstance(obj, tuple):
600-
return VersionInfo(*obj).to_dict()
601-
return obj
602-
603-
604596
@deprecated(replace="semver.VersionInfo.parse", version="2.10.0")
605597
def parse_version_info(version):
606598
"""

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.