Skip to content

Commit

Permalink
Minor update to coding example in 3.1
Browse files Browse the repository at this point in the history
To comply with the standard syntax in Python 3
  • Loading branch information
chpauline committed Dec 4, 2023
1 parent 653dd71 commit 8267804
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/reST/tut/tom_games3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ a nasty traceback, which non-programmers won't understand. The code is fairly si
import pygame
from socket import *
from pygame.locals import *
except ImportError, err:
except ImportError as err:
print(f"couldn't load module. {err}")
sys.exit(2)

Expand Down

0 comments on commit 8267804

Please sign in to comment.