tags:

views:

89

answers:

1

How can I convert this so it could execute?

Traceback (most recent call last):
  File "C:\Users\Shady\Desktop\tet.py", line 14, in <module>
    exec test
  File "<string>", line 1
    print "hello world"
   ^
IndentationError: unexpected indent

source:

test = ''.join(clientIp.split("test6")[1:])
+2  A: 

You might need to use lstrip() on the string to get rid of any leading whitespace before passing it to exec.

Amber
yes, it was that... already did with another way.. thx
Shady