Skip to content

Commit

Permalink
Attribute level_up to Alex
Browse files Browse the repository at this point in the history
jgonggrijp committed Apr 21, 2013
1 parent 8b3f9a3 commit c250de3
Showing 3 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions Authors.txt
Original file line number Diff line number Diff line change
@@ -2,5 +2,6 @@ The Red Spider Project -- Authors.txt

(Please add your name at the top.)

Alex Hammel
Harry Gilles
Julian Gonggrijp
10 changes: 7 additions & 3 deletions test/level_up/level_up.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
#!/usr/bin/env python3

# Copyright 2012 Alex Hammel
# Licensed under the Red Spider Project License.
# See the License.txt that shipped with your copy of this software for details.

import sys
import os
from tkinter import *
import argparse

#
#
# Some definitions:
#
# The _line count_ for a language is the number of source lines of code
@@ -257,7 +261,7 @@ def get_scores(root_folder):
def update_score_file(line_counts, score_file, head=""):
"""Writes a table of line counts to the score_file. The head argument will
typically be used to prepend the default directory to the score file.
"""
with open(score_file, 'w') as sf:
print(head, file=sf)
@@ -329,7 +333,7 @@ def main():
dest='count',
help="Show the code line counts for the directory")
args = parser.parse_args()

if args.count:
counts = get_line_counts(args.count[0])
for lang in sorted(counts):
4 changes: 4 additions & 0 deletions test/level_up/test_level_up.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright 2012, 2013 Alex Hammel
# Licensed under the Red Spider Project License.
# See the License.txt that shipped with your copy of this software for details.

import level_up
import unittest
import glob

0 comments on commit c250de3

Please sign in to comment.