Skip to content

Commit

Permalink
Fixed \r characters not being stripped
Browse files Browse the repository at this point in the history
  • Loading branch information
Carter Sande committed Sep 30, 2012
1 parent aad2917 commit c0dc97e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TypingGame.py
Expand Up @@ -55,7 +55,7 @@ def updateSurface(self):
except:
wordfile = open('words.txt', 'r')
words = wordfile.readlines()
wordStr = random.choice(words).strip('\n')
wordStr = random.choice(words).strip()
word = TypingGameWord(wordStr)
wordfile.close()
try:
Expand Down

0 comments on commit c0dc97e

Please sign in to comment.