[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Python 2.2 issues



Hi,

  I'm trying to get a 2.2 version of python-4suite.

  At install time, the postinst script gives me :

  /usr/lib/python2.2/site-packages/Ft/Ods/Tools/init.py:90:
  SyntaxWarning: import * only allowed at module level def Register():
  /usr/lib/python2.2/site-packages/Ft/Ods/Tools/init.py:90:
  SyntaxWarning: import * only allowed at module level def Register():
  /usr/lib/python2.2/site-packages/Ft/Ods/Tools/init.py:90:
  SyntaxWarning: import * only allowed at module level def Register():
  /usr/lib/python2.2/site-packages/Ft/Ods/Tools/init.py:90:
  SyntaxWarning: import * only allowed at module level def Register():

  
  Here is the problematic code :

  ...
  def Register():
    from Ft.Lib.CommandLine import Options, Command, Arguments
    from Ft.Lib.CommandLine.Options import *
    from Ft.Lib.CommandLine.Arguments import *
  ...

  Since the 2.1 version installs fine, I guess something has changed
  in 2.2. Could someone please enlighten me?

  Thanks in advance.

-- 
Jérôme Marant <jerome.marant@free.fr>
              <jerome@marant.org>

http://marant.org



Reply to: