It's a new syntax introduced in python 2.6 and 3.x. It's a little clearer than the old syntax was, especially in the case of catching multiple exception types. You do not have to make the change in your code as long as calibre continues to use python 2.x, which it will for a long time.
|