Python Forum
Refactoring code for a domain name list
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Refactoring code for a domain name list
#3
Hi @Larz60

Sorry, I was not more clear.

The end result desired is the pretty list. The thing I came up agains was prepending or appending the string blockedDomains. I know they're immutable and tried using an empty list but that created a bunch of "".

So, that's why there' a few steps in the re.sub()
Reply


Messages In This Thread
RE: Refactoring code for a domain name list - by BidBird - Aug-18-2020, 07:42 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020