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 src/algorithms/bruteforceByCost.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <set>
#include <map>
#include <functional>
#include <iostream>

/*! \class bruteforceByCost

Expand Down
4 changes: 2 additions & 2 deletions src/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def apply_defaults(params, defaults):
try:
if params is None:
params = defaults
if type(params) in [str, unicode, int, long, float]:
if type(params) in [str, int, float]:
pass
elif isinstance(params, list):
# If there is a default entry, the list must be length one
Expand All @@ -126,7 +126,7 @@ def apply_defaults(params, defaults):
raise ValueError("Params dictionary met with non-dictionary default: {}, {}".format(params, defaults))
else:
raise RuntimeException("Unable to apply defaults to {} (from {})".format(params, defaults))
except TypeError, e:
except TypeError as e:
raise TypeError("TypeError: Unable to apply defaults to {} (from {})".format(params, defaults))
return params

Expand Down