Skip to content
← Back to Community
Indent errors when importing working Python code to repl.it
Profile icon
stevemiller

Hi,
I like to develop my applications locally before putting them on repl.it. I code in Python3. The problem is that when I take working code and then cut and paste or upload to repl.it. I get the infamous uneven indent errors; The solutions is to retype the code. My code is typically 1000+ lines so I really would like to not do this. is there a 'correct' way to import working Python code that is already working into repl.it?

Voters
Profile icon
stevemiller
Comments
hotnewtop
Profile icon
[deleted]

You can just put in a pastebin and link it in the comment. Unfortunately im on a school computer and they blocked pastebin so ill use a ripoff pastebin example:https://paste.ubuntu.com/p/S2PvjhKwzc/

Profile icon
[deleted]

You dont have to recode it, you can press backspace to make it all even. I dont know if theres a way to copy it a different way... sorry