VJ shekar wrote:
  str = line.strip()
  if (str != ""):
    val = int(str)

These lines redefine "str" in the local namespace, which normally refers to the native Python string type. This confuses the interpreter later on in the script, when the "print ..." line expects to call the constructor for the *old* definition of str.

Rename the variable "str" in these three lines of code to something else, and it should fix the problem.

Greg Hackmann
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to