Skip to content

Commit a0d1f82

Browse files
authored
Fix for python 2.x
1 parent 5b710d9 commit a0d1f82

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

GithubStat/__init__.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
5555
[-] Github URL : https://github.com/%s
5656
[-] Repositories : https://github.com/%s/repositories
57-
[-] Avaar : %s
57+
[-] Avatar : %s
5858
"""
5959

6060
def status(user):
@@ -120,10 +120,12 @@ def stats(user):
120120
print('')
121121

122122
if save_repo == "y" or save_repo == "Y":
123-
with open('%s.csv' % (user),'w', newline='', encoding='utf-8') as f:
124-
output=csv.writer(f)
123+
with open("%s.csv" % (user), "w") as f:
124+
output=csv.writer(f, lineterminator='\n')
125125
output.writerow(['Repository Name','Total Stars','Total Forks','Clone URL'])
126-
for w in stats: output.writerow(w)
126+
for row in stats:
127+
output.writerow(row)
128+
127129
print("[-] File Saved as : %s.csv" % (user))
128130
print('')
129131
else:

0 commit comments

Comments
 (0)