pyminifier
pyminifier copied to clipboard
Weird Indentation Error
So I'm a little lost with this error. For some reason, I get an indentation error on Windows, and I've checked my python 3 code, and it runs perfectly by itself, but not with pyminifier. I ran: pyminifier --obfuscate -o test123.py test.py, and I get an indentation error. I will include the output from cmd, as well as my code example so that way we can hopefully figure out the problem. I'd really appreciate the help,
CMD Output:
C:\Users\Misleading\Desktop>pyminifier --obfuscate -o test123.py test.py
Traceback (most recent call last):
File "C:\Users\Misleading\AppData\Local\Programs\Python\Python36-32\Scripts\pyminifier-script.py", line 11, in
My Working Code Example:
import sys, threading
def Threader(): if sys.platform == "win32": example = threading.Thread(target=Example) example.start() else: exit()
def Example(): print("Hello World!") exit()
if name == "main": Threader()
I have the same error when I am using "tabs" as indentation instead of spaces.
Please use the ``` code blocks in markdown to properly markup code like below:
# This is Python code
print "5"
def p(x) : return x + 1
CRLF issue, maybe??
No crlf issue, tabs instead of spaces for indentation