diff options
author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2020-03-04 09:41:05 +0700 |
---|---|---|
committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2020-03-04 09:41:05 +0700 |
commit | c326f93bbb7241d7e4d5b0afa1f50a60efb3af67 (patch) | |
tree | 68f9ef724ffef1d88eb3fb937bb1424948a79977 /brutalmaze | |
parent | b90e6c272c1f76da43992323ffd0f148f759f408 (diff) | |
download | brutalmaze-c326f93bbb7241d7e4d5b0afa1f50a60efb3af67.tar.gz |
Redirect pygame message and add wiki to sdist
Diffstat (limited to 'brutalmaze')
-rw-r--r-- | brutalmaze/game.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/brutalmaze/game.py b/brutalmaze/game.py index f8c3cdd..e5670f8 100644 --- a/brutalmaze/game.py +++ b/brutalmaze/game.py @@ -21,13 +21,15 @@ __version__ = '0.9.0' import re from argparse import ArgumentParser, FileType, RawTextHelpFormatter from configparser import ConfigParser +from contextlib import redirect_stdout +from io import StringIO from math import atan2, radians, pi from os.path import join as pathjoin, pathsep from socket import socket, SOL_SOCKET, SO_REUSEADDR from sys import stdout from threading import Thread -import pygame +with redirect_stdout(StringIO()): import pygame from pygame import KEYDOWN, MOUSEBUTTONUP, QUIT, VIDEORESIZE from pygame.time import Clock, get_ticks from appdirs import AppDirs |