You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@serf.apache.org by "Jose Lamego (JIRA)" <ji...@apache.org> on 2017/10/18 19:48:00 UTC

[jira] [Updated] (SERF-187) calling print as a statement causes a SyntaxError if SCons v.3 is installed

     [ https://issues.apache.org/jira/browse/SERF-187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jose Lamego updated SERF-187:
-----------------------------
    Summary: calling print as a statement causes a SyntaxError if SCons v.3 is installed  (was: SConstruct: calling print as a statement causes a SyntaxError if SCons v. 3.0.0 is installed)

> calling print as a statement causes a SyntaxError if SCons v.3 is installed
> ---------------------------------------------------------------------------
>
>                 Key: SERF-187
>                 URL: https://issues.apache.org/jira/browse/SERF-187
>             Project: serf
>          Issue Type: Bug
>    Affects Versions: serf-1.3.9
>         Environment: Open embedded linux
>            Reporter: Jose Lamego
>         Attachments: 0001-SConstruct-make-print-syntax-compatible-with-python3.patch
>
>
> Scons version 3.0.0 calls print as a function due to the use of "import _from __future__ import print_function", so a SyntaxError is thrown when print is called as a statement in SConstruct if said SCons version is installed.
> In the attached patch, I'm proposing modifying the print syntax to be compatible with python3's print format.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)