Skip to content

SyntaxError: invalid syntax (print("Progress: {:.1f}%".format(((index + 1) / len(pids))*100), end='\r')) #18

Description

@KinG-InFeT
└─ $ ▶  php translate_python_to_php 
running [ /home/vluongo/Scaricati/py2php/py2php down.py > down.php ]
Traceback (most recent call last):
  File "/home/vluongo/Scaricati/py2php/py2php", line 1895, in <module>
    print translate(file_name, module_name),
  File "/home/vluongo/Scaricati/py2php/py2php", line 1725, in translate
    mod = compiler.parseFile(file_name)
  File "/usr/lib/python2.7/compiler/transformer.py", line 47, in parseFile
    return parse(src)
  File "/usr/lib/python2.7/compiler/transformer.py", line 51, in parse
    return Transformer().parsesuite(buf)
  File "/usr/lib/python2.7/compiler/transformer.py", line 128, in parsesuite
    return self.transform(parser.suite(text))
  File "<string>", line 130
    print("Progress: {:.1f}%".format(((index + 1) / len(pids))*100), end='\r')
                                                                        ^
SyntaxError: invalid syntax
failed!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions