try:
Translation_4 = shaperpy.makeTranslation(Box_4, None, 15.)
-except myExcept,ec:
+except myExcept as ec:
assert(ec.what() == "Translation builder :: axis is not valid.")
Translation_9 = shaperpy.makeTranslation(Box_5, ax4, 15.)
MultiTranslation_4 = shaperpy.makeMultiTranslation(Box_9, ax1, 15., 3, ax2, 15., 3)
try:
Translation_13 = shaperpy.makeTranslation(MultiTranslation_4, None, 15.)
-except myExcept,ec:
+except myExcept as ec:
assert(ec.what() == "Translation builder :: axis is not valid.")
MultiTranslation_5 = shaperpy.makeMultiTranslation(Box_10, ax1, 15., 3, ax2, 15., 3)
try:
Translation_100 = shaperpy.makeTranslation(Box_11, pnt1, pnt1)
-except myExcept,ec:
+except myExcept as ec:
assert(ec.what() == "Translation builder :: start point and end point coincide.")
try:
Translation_101 = shaperpy.makeTranslation(Box_11, None, pnt1)
-except myExcept,ec:
+except myExcept as ec:
assert(ec.what() == "Translation builder :: start point is not valid.")
try:
Translation_102 = shaperpy.makeTranslation(Box_11, pnt1, None)
-except myExcept,ec:
+except myExcept as ec:
assert(ec.what() == "Translation builder :: end point is not valid.")
\ No newline at end of file