Click here to Skip to main content
15,886,720 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello! I need to use a code written by someone in Python a while back, and I get a SyntaxError: invalid syntax in this line:
tfileServices = {n: s.fileName for n, s in process.services.iteritems() if s.type_() == 'TFileService'}

I am not really sure what is wrong about it, so can someone tell me why is it not working (it supposedly worked for him)? Thank you!

What I have tried:

I am not sure what to google for, as the error is quite general
Posted
Comments
Richard MacCutchan 19-Jul-17 13:12pm    
Ask the person who wrote it.
Rahul VB 27-Mar-19 11:11am    
:) :)
Haranadh gupta 26-Jul-17 1:56am    
You need to give more information. Before this code you might have defined about process. if you could provide you may get answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900