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 22, 2017
1 parent c4dcbc9 commit 808bffc
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 808bffc

Please sign in to comment.