eric6/PipInterface/PipPackageDetailsDialog.py

changeset 8222
5994b80b8760
parent 8218
7c09585bd960
child 8228
772103b14c18
equal deleted inserted replaced
8221:0572a215bd2f 8222:5994b80b8760
191 text = "" 191 text = ""
192 elif text == "any": 192 elif text == "any":
193 text = self.tr("any") 193 text = self.tr("any")
194 elif text is None: 194 elif text is None:
195 text = "" 195 text = ""
196 if forUrl: 196 if forUrl and (
197 if ( 197 not isinstance(text, str) or
198 not isinstance(text, str) or 198 not text.startswith(("http://", "https://", "ftp://"))
199 not text.startswith(("http://", "https://", "ftp://")) 199 ):
200 ): 200 # ignore if the schema is not one of the listed ones
201 # ignore if the schema is not one of the listed ones 201 text = ""
202 text = ""
203 202
204 return text 203 return text
205 204
206 def __formatUploadDate(self, datetime): 205 def __formatUploadDate(self, datetime):
207 """ 206 """

eric ide

mercurial