On 2/8/16, Philip Taylor <p.tay...@rhul.ac.uk> wrote: > P.S. Experimenting against both versions, I found that what Python 3 > detected as syntax errors in the Version 2 source prevented the test > from ever being evaluated, but the following three changes allow the > diagnostic to be issue correctly for both Python 2 and Python 3 : > > def BadDVI(msg): > raise AttributeError, 'Bad DVI file: %s!' % msg > > -> > > def BadDVI(msg): > raise (AttributeError, 'Bad DVI file: %s!' % msg) > > > if q <= 0 or q >= 01000000000: > warning("%s---not loaded, bad scale (%d)!" % (n, q)) > elif d <= 0 or d >= 01000000000: > > -> > > if q <= 0 or q >= 512: > warning("%s---not loaded, bad scale (%d)!" % (n, q)) > elif d <= 0 or d >= 512: > > ** Phil.
512 doesn't look like the right number (in Python 2, 012345 is octal 12345, not binary). It may be better to use 0o1000000000 which seems to work in both Python 2 and 3. Bruno -------------------------------------------------- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex