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 8675062
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion batavia/types/StrUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1182,7 +1182,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 8675062

Please sign in to comment.