Skip to content

Commit

Permalink
Merge branch 'scott-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
phn committed Jun 23, 2011
2 parents 634a5f8 + 613f3a6 commit bb1c1fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions get_docstring.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def get_docstring():

file_list = glob.glob('*.[fF]')

print "{0} files found.".format(len(file_list))
print "%d files found." % len(file_list)

for i,file_name in enumerate(file_list):
f = open(file_name, "r")
Expand All @@ -35,7 +35,7 @@ def get_docstring():
if len(matches.groups()) != 1: # there should be only one match
raise ValueError, "More than one match for function name."
name = matches.group()
print "Reading {0:10s} in {1}.".format(name, file_name)
print "Reading %10s in %s." % (name, file_name)

doc = []
inside = 0
Expand All @@ -55,8 +55,7 @@ def get_docstring():

f.close()

print "{0} functions read from {1} files.".format(len(doc_dict),
len(file_list))
print "%d functions read from %d files." % (len(doc_dict), len(file_list))
return doc_dict

if __name__ == "__main__":
Expand Down
2 changes: 1 addition & 1 deletion test/test_slalib.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import slalib as S
from pyslalib import slalib as S
import numpy as N
import numpy.testing as T
import math, unittest
Expand Down

0 comments on commit bb1c1fb

Please sign in to comment.