Skip to content
  • Dylan Baker's avatar
    python: use future print, division, and absolute_import · f4115891
    Dylan Baker authored
    
    
    These are the three python3 like behaviors that piglit should rely on.
    The only other applicable future import is unicode_literals. Although my
    plan is to use unicode_literals, that will actually cause behavioral
    changes in some cases, where these cause minimal changes to the code.
    
    Piglit will not be targeting < 3.2, they are old, unsupported, and have
    fewer features than 2.7.
    
    Piglit now has division (using / as floating division, and // as integer
    division), print as a function (rather than a statement), and
    absolute import, which changes the way import works when there's a
    conflict between a local import and a system wide one. Absolute import
    makes more sense, and copies the behavior of python 3
    
    Signed-off-by: default avatarDylan Baker <dylanx.c.baker@intel.com>
    Acked-by: default avatarJose Fonseca <jfonseca@vmware.com>
    f4115891