Corrected Python reference to the AmountParse enum.
This commit is contained in:
parent
701e45c172
commit
75f1cd727c
2 changed files with 5 additions and 4 deletions
|
|
@ -351,10 +351,10 @@ internal precision.")
|
|||
;
|
||||
|
||||
enum_< amount_t::parse_flags_enum_t >("AmountParse")
|
||||
.value("PARSE_DEFAULT", amount_t::PARSE_DEFAULT)
|
||||
.value("PARSE_NO_MIGRATE", amount_t::PARSE_NO_MIGRATE)
|
||||
.value("PARSE_NO_REDUCE", amount_t::PARSE_NO_REDUCE)
|
||||
.value("PARSE_SOFT_FAIL", amount_t::PARSE_SOFT_FAIL)
|
||||
.value("DEFAULT", amount_t::PARSE_DEFAULT)
|
||||
.value("NO_MIGRATE", amount_t::PARSE_NO_MIGRATE)
|
||||
.value("NO_REDUCE", amount_t::PARSE_NO_REDUCE)
|
||||
.value("SOFT_FAIL", amount_t::PARSE_SOFT_FAIL)
|
||||
;
|
||||
|
||||
register_optional_to_python<amount_t>();
|
||||
|
|
|
|||
|
|
@ -118,6 +118,7 @@ for line in fd.readlines():
|
|||
# Determine this list automatically by scanning the class_ lines in
|
||||
# python/*.cc
|
||||
line = re.sub('amount_t::', 'Amount.', line)
|
||||
line = re.sub('Amount\.PARSE_', 'AmountParse.', line)
|
||||
line = re.sub('commodity_t\(([^)]+?)\)', '\\1', line)
|
||||
line = re.sub('commodity_t::', 'Commodity.', line)
|
||||
line = re.sub('balance_t::', 'Balance.', line)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue