Merge pull request #323 from cueo/myparser-unique

Simplify `unique` method in myParser
This commit is contained in:
J.Townsend 2019-10-06 20:50:10 +01:00 committed by GitHub
commit abfb4f4b45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -149,8 +149,4 @@ def urls(self):
return urls
def unique(self) -> list:
self.new = []
for iteration in self.temp:
if iteration not in self.new:
self.new.append(iteration)
return self.new
return list(set(self.temp))