[reportlab-users] FutureWarnings in ttfonts.py with Python 2.3

Marc Stober reportlab-users@reportlab.com
Wed, 24 Mar 2004 09:19:01 -0500


Hello,

I was just wondering if there was any quick fix to the FutureWarnings still
being returned by ttfonts.py running under Python 2.3? Even running the
simple example from the user guide (the one with Rina.ttf) shows this:

C:\Python23\lib\site-packages\reportlab\pdfbase\ttfonts.py:181:
FutureWarning: x<<y losing bits or changing sign will return a long in
Python 2.4 and up
  sum = (hi << 16) | (lo & 0xFFFF)
C:\Python23\lib\site-packages\reportlab\pdfbase\ttfonts.py:190:
FutureWarning: x<<y losing bits or changing sign will return a long in
Python 2.4 and up
  return (hi << 16) | (lo & 0xFFFF)

Thanks, Marc
mstober@dalbar.com