Thread: SyntaxError
View Single Post
Old 01-10-2013, 02:14 PM   PM User | #2
TFlan
New Coder

 
Join Date: Dec 2012
Location: USA
Posts: 82
Thanks: 3
Thanked 17 Times in 17 Posts
TFlan is an unknown quantity at this point
Not sure if you just copied and pasted this code, but you found your own problem and your own solution..

As you might guess > is an html entity of the character '>' - greater than

Change this line:
Code:
if bytesToCopy > = len(keyData):
to this:
Code:
if bytesToCopy >= len(keyData):
Please NEVER, EVER, EVER blindly copy and paste python.. always re-write it yourself. This will help you understand what you are trying to accomplish and will make sure some punk who posted that code isn't pulling your leg for a good, cheap laugh
TFlan is offline   Reply With Quote