Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
*.kpf
dist
build
.idea/

12 changes: 6 additions & 6 deletions framingham10yr/framingham10yr.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,9 +485,9 @@ def framingham_10year_risk(sex, age, total_cholesterol, hdl_cholesterol,
blood_pressure_med_treatment=sys.argv[7].lower()

except(IndexError):
print "All values are required."
print "Usage: framingham.py <sex> <age> <total_cholesterol> <hdl_cholesterol systolic_blood_pressure> <smoker> <blood_pressure_med_treatment>"
print "Example: framingham.py male 25 152 56 130 0 0"
print("All values are required.")
print("Usage: framingham.py <sex> <age> <total_cholesterol> <hdl_cholesterol systolic_blood_pressure> <smoker> <blood_pressure_med_treatment>")
print("Example: framingham.py male 25 152 56 130 0 0")
exit(1)

try:
Expand All @@ -498,9 +498,9 @@ def framingham_10year_risk(sex, age, total_cholesterol, hdl_cholesterol,
smoker, blood_pressure_med_treatment)

#return pretty-print json to standard out
print json.dumps(result, indent=4)
print(json.dumps(result, indent=4))

except():
print "An unexpected error occured. Here is the post-mortem:"
print sys.exc_info()
print("An unexpected error occured. Here is the post-mortem:")
print(sys.exc_info())

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def fullsplit(path, result=None):
# Tell distutils to put the data_files in platform-specific installation
# locations. See here for an explanation:
# http://groups.google.com/group/comp.lang.python/browse_thread/thread/35ec7b2fed36eaec/2105ee4d9e8042cb
for scheme in INSTALL_SCHEMES.values():
for scheme in list(INSTALL_SCHEMES.values()):
scheme['data'] = scheme['purelib']

# Compile the list of packages available, because distutils doesn't have
Expand Down