[issue37061] The strangest glitch I have ever seen - incorrect indenterror, even on commented out code.

2019-05-26 Thread Bob Vegene


New submission from Bob Vegene :

So, I'm making a simple program that will allow me to quickly copy programs to 
System32 for use on the command line. When I tried testing this in a file 
called test.py in the same directory as sys32move.py, I got a very strange 
error. IndentError. I am very experienced with python and I know how to fix 
this and why it is caused. I fixed what I thought I could, but the I realized 
something was off. 

I commented out everything in sys32move.py and it still outputs this error.

Now, commenting this out is unnecessary, as this is a false error anyway.


This is test.py:
try:
import sys32pack
install_folder(testfolder)
except Exception as e:
print(e)
input()

(you get same behavior without the catching of the error.)


SYS32PACK.py:

--
components: Build, Cross-Build
files: sys32pack.py
messages: 343591
nosy: Alex.Willmer, bob.vegena
priority: normal
severity: normal
status: open
title: The strangest glitch I have ever seen - incorrect indenterror, even on 
commented out code.
type: behavior
versions: Python 3.9
Added file: https://bugs.python.org/file48363/sys32pack.py

___
Python tracker 
<https://bugs.python.org/issue37061>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37061] The strangest glitch I have ever seen - incorrect indenterror, even on commented out code.

2019-05-26 Thread Bob Vegene


Bob Vegene  added the comment:

No, I removed that before. I actually did have one, but I removed that and it 
still shows.

--

___
Python tracker 
<https://bugs.python.org/issue37061>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37061] The strangest glitch I have ever seen - incorrect indenterror, even on commented out code.

2019-05-26 Thread Bob Vegene


Bob Vegene  added the comment:

The error it gives is 

unexpected indent (sys32pack.py, line 41)

(im also using IDLE)

FYI.

--

___
Python tracker 
<https://bugs.python.org/issue37061>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37061] The strangest glitch I have ever seen - incorrect indenterror, even on commented out code.

2019-05-26 Thread Bob Vegene


Bob Vegene  added the comment:

uhm, the current file is attached now

is there some sort of error and you guys see it differently???

i can't be the only one getting this. I swear i have everything right, and i'll 
attach an image if i need too.

--
Added file: https://bugs.python.org/file48364/sys32pack.py

___
Python tracker 
<https://bugs.python.org/issue37061>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37061] The strangest glitch I have ever seen - incorrect indenterror, even on commented out code.

2019-05-26 Thread Bob Vegene


Bob Vegene  added the comment:

I decided to check the file in notepad++ and I saw that there actually is an 
indentationerror... However, the save button wasn't working I guess. I can't 
tell you how many times i hit ctrl+s and clicked save. Wow, so it still is a 
bug.

--

___
Python tracker 
<https://bugs.python.org/issue37061>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com