wimleers / fileconveyor

File Conveyor is a daemon written in Python to detect, process and sync files. In particular, it's designed to sync files to CDNs. Amazon S3 and Rackspace Cloud Files, as well as any Origin Pull or (S)FTP Push CDN, are supported. Originally written for my bachelor thesis at Hasselt University in Belgium.
https://wimleers.com/fileconveyor
The Unlicense
341 stars 95 forks source link

How to rectify syntex error #54

Closed unixbhaskar closed 13 years ago

unixbhaskar commented 13 years ago

[bhaskarc@sorry1 code]$ sudo python arbitrator.py Traceback (most recent call last): File "arbitrator.py", line 23, in ? from fsmonitor import * File "/opt/fileconveyor/code/fsmonitor.py", line 54, in ? from pathscanner import PathScanner File "/opt/fileconveyor/code/pathscanner.py", line 56 rows.append((path, filename, mtime if not is_dir else -1)) ^ SyntaxError: invalid syntax

please throw some light.

Cheers! Bhaskar

wimleers commented 13 years ago

Which version of Python are you using?

unixbhaskar commented 13 years ago

2.6 on RHEL 5

wimleers commented 13 years ago

I can not reproduce this. Many people have reported this is working fine with Python 2.6.

Maybe you've configured your Python instance to run with some kind of very strict checking?