Skip to content

Commit dd6b557

Browse files
committed
Remove unnecessary 'cast' to unicode string.
1 parent ea3096f commit dd6b557

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

readthedocs/projects/version_handling.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,7 @@ def version_windows(versions, major=1, minor=1, point=1):
113113
def parse_version_failsafe(version_string):
114114
try:
115115
return Version(
116-
six.text_type(
117-
unicodedata.normalize('NFKD', six.text_type(version_string)))
116+
unicodedata.normalize('NFKD', six.text_type(version_string))
118117
)
119118
except (UnicodeError, InvalidVersion):
120119
return None

0 commit comments

Comments
 (0)