Skip to content
This repository has been archived by the owner on May 31, 2020. It is now read-only.

Commit

Permalink
Change format error message for Python 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
abonie committed Aug 23, 2017
1 parent a9a3692 commit 4da26cf
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion batavia/types/StrUtils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var exceptions = require('../core').exceptions
var constants = require('../core').constants
var type_name = require('../core').type_name
var BigNumber = require('bignumber.js').BigNumber

Expand Down Expand Up @@ -1182,7 +1183,15 @@ function _new_subsitute(str, args, kwargs) {
// sign
// alternate form
if (this.grouping === ',') {
throw new exceptions.ValueError.$pyclass("Cannot specify ',' with 's'.")
switch (constants.BATAVIA_MAGIC) {
case constants.BATAVIA_MAGIC_34:
case constants.BATAVIA_MAGIC_35a0:
case constants.BATAVIA_MAGIC_35:
case constants.BATAVIA_MAGIC_353:
throw new exceptions.ValueError.$pyclass("Cannot specify ',' with 's'.")
case constants.BATAVIA_MAGIC_36:
throw new exceptions.ValueError.$pyclass("Cannot specify ',' or '_' with 's'.")
}
}

if (this.sign) {
Expand Down

0 comments on commit 4da26cf

Please sign in to comment.