File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -172,18 +172,6 @@ def extras(self):
172
172
match = self .pattern .match (self .value )
173
173
return list (re .finditer (r'\w+' , match .group ('extras' ) or '' ))
174
174
175
- @classmethod
176
- def _from_text (cls , text ):
177
- return itertools .starmap (cls , cls ._parse_groups (text or '' ))
178
-
179
- @staticmethod
180
- def _parse_groups (text ):
181
- return (
182
- (name , value , section )
183
- for section , values in Sectioned .get_sections (text )
184
- for name , value in values
185
- )
186
-
187
175
def _for (self , dist ):
188
176
self .dist = dist
189
177
return self
@@ -253,7 +241,19 @@ def groups(self):
253
241
254
242
@classmethod
255
243
def _from_text_for (cls , text , dist ):
256
- return cls (ep ._for (dist ) for ep in EntryPoint ._from_text (text ))
244
+ return cls (ep ._for (dist ) for ep in cls ._from_text (text ))
245
+
246
+ @classmethod
247
+ def _from_text (cls , text ):
248
+ return itertools .starmap (EntryPoint , cls ._parse_groups (text or '' ))
249
+
250
+ @staticmethod
251
+ def _parse_groups (text ):
252
+ return (
253
+ (name , value , section )
254
+ for section , values in Sectioned .get_sections (text )
255
+ for name , value in values
256
+ )
257
257
258
258
259
259
def flake8_bypass (func ):
You can’t perform that action at this time.
0 commit comments