Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
-Fixed readfile encoding issue
  • Loading branch information
onemanbuilds committed Nov 8, 2020
1 parent bbbc471 commit c095bdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def GetRandomProxy(self):
return choice(proxies_file)

def ReadFile(self,filename,method):
with open(filename,method) as f:
with open(filename,method,encoding='utf8') as f:
content = [line.strip('\n') for line in f]
return content

Expand Down

0 comments on commit c095bdb

Please sign in to comment.