Skip to content

Commit 00a0de0

Browse files
committed
code style
Signed-off-by: Kunz, Immanuel <[email protected]>
1 parent 2cf2ca6 commit 00a0de0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/univers/versions.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ class NoneVersion(Version):
144144
@classmethod
145145
def is_valid(cls, string):
146146
return string == "vers:none/*"
147-
147+
148148

149149
class LexicographicVersion(Version):
150150
@classmethod
@@ -154,18 +154,19 @@ def build_value(cls, string):
154154
"""
155155
Create a string, even if, e.g., an integer is given
156156
"""
157+
157158
@classmethod
158159
def normalize(cls, string):
159160
return remove_spaces(str(string))
160161

161162
def __lt__(self, other):
162-
return self.value.encode('utf-8') < other.value.encode('utf-8')
163+
return self.value.encode("utf-8") < other.value.encode("utf-8")
163164

164165
def __gt__(self, other):
165-
return self.value.encode('utf-8') > other.value.encode('utf-8')
166+
return self.value.encode("utf-8") > other.value.encode("utf-8")
166167

167168
def __eq__(self, other):
168-
return self.value.encode('utf-8') == other.value.encode('utf-8')
169+
return self.value.encode("utf-8") == other.value.encode("utf-8")
169170

170171

171172
class IntdotVersion(Version):

0 commit comments

Comments
 (0)