Bläddra i källkod

Cleanup: whitespace changes & removed extra ';'.

Heikki Hokkanen 15 år sedan
förälder
incheckning
6283b0e5b0
1 ändrade filer med 8 tillägg och 7 borttagningar
  1. 8
    7
      gitstats

+ 8
- 7
gitstats Visa fil

@@ -450,15 +450,16 @@ class GitDataCollector(DataCollector):
450 450
 		self.total_lines = total_lines
451 451
 
452 452
 		# Per-author statistics
453
+
454
+		# defined for stamp, author only if author commited at this timestamp.
453 455
 		self.changes_by_date_by_author = {} # stamp -> author -> lines_added
454
-		                                    # defined for stamp, author only if
455
-		                                    # author commited at this timestamp.
456
+
456 457
 		# Similar to the above, but never use --first-parent
457
-		# (we need to walk through every commits to know who
458
-		# commited what, not just through mainline)
458
+		# (we need to walk through every commit to know who
459
+		# committed what, not just through mainline)
459 460
 		lines = getpipeoutput(['git log --shortstat --pretty=format:"%%at %%aN" %s' % (getcommitrange('HEAD'))]).split('\n')
460 461
 		lines.reverse()
461
-		files = 0; inserted = 0; deleted = 0; 
462
+		files = 0; inserted = 0; deleted = 0
462 463
 		author = None
463 464
 		for line in lines:
464 465
 			if len(line) == 0:
@@ -888,8 +889,8 @@ class HTMLReportCreator(ReportCreator):
888 889
 					commits_by_authors[author] = data.changes_by_date_by_author[stamp][author]['commits']
889 890
 				fgl.write(' %d' % lines_by_authors[author])
890 891
 				fgc.write(' %d' % commits_by_authors[author])
891
-			fgl.write('\n');
892
-			fgc.write('\n');
892
+			fgl.write('\n')
893
+			fgc.write('\n')
893 894
 		fgl.close()
894 895
 		fgc.close()
895 896