[issue47226] Unexpected indent message

2022-04-05 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: -paul.moore, steve.dower, terry.reedy, tim.golden, zach.ware ___ Python tracker ___ ___

[issue47226] Unexpected indent message

2022-04-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: " keys = pygame.key.get_pressed() is showing error called unexpected indent" The problem is that the keys line in indented one less space than the line above. A shorter example below. if True: a = 1 b = 2 SyntaxError: unindent does not match any