changeset 203:df8b2ab54639

Make pylint slightly happier (and code analysis easier)
author Thibaut Girka <thib@sitedethib.com>
date Mon, 31 Oct 2011 19:29:47 +0100
parents d348892ef012
children 88361534c77e
files pytouhou/formats/msg.py pytouhou/game/game.py pytouhou/opengl/gamerunner.py pytouhou/opengl/texture.py
diffstat 4 files changed, 11 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/pytouhou/formats/msg.py
+++ b/pytouhou/formats/msg.py
@@ -12,7 +12,6 @@
 ## GNU General Public License for more details.
 ##
 
-import struct
 from struct import pack, unpack, calcsize
 from pytouhou.utils.helpers import read_string
 
--- a/pytouhou/game/game.py
+++ b/pytouhou/game/game.py
@@ -17,7 +17,6 @@ from pytouhou.utils.random import Random
 
 from pytouhou.vm.eclrunner import ECLMainRunner
 
-from pytouhou.game.player import Player
 from pytouhou.game.enemy import Enemy
 from pytouhou.game.item import Item
 from pytouhou.game.effect import Effect
@@ -50,7 +49,8 @@ class Game(object):
         self.difficulty_max = 20 if rank == 0 else 32
         self.boss = None
         self.spellcard = None
-        self.bonus_list = [0,0,1,0,1,0,0,1,1,1,0,0,0,1,1,0,1,0,1,0,1,0,1,0,1,0,0,1,1,1,0,2]
+        self.bonus_list = [0, 0, 1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0,
+                           1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 1, 1, 0, 2]
         self.prng = prng or Random()
         self.frame = 0
 
--- a/pytouhou/opengl/gamerunner.py
+++ b/pytouhou/opengl/gamerunner.py
@@ -15,7 +15,13 @@
 import pyglet
 import traceback
 
-from pyglet.gl import *
+from pyglet.gl import (glMatrixMode, glLoadIdentity, glEnable,
+                       glHint, glEnableClientState, glViewport,
+                       gluPerspective, gluLookAt,
+                       GL_MODELVIEW, GL_PROJECTION,
+                       GL_TEXTURE_2D, GL_BLEND, GL_FOG,
+                       GL_PERSPECTIVE_CORRECTION_HINT, GL_FOG_HINT, GL_NICEST,
+                       GL_COLOR_ARRAY, GL_VERTEX_ARRAY, GL_TEXTURE_COORD_ARRAY)
 
 from pytouhou.opengl.gamerenderer import GameRenderer
 
--- a/pytouhou/opengl/texture.py
+++ b/pytouhou/opengl/texture.py
@@ -13,7 +13,8 @@
 ##
 
 import pyglet
-from pyglet.gl import *
+from pyglet.gl import (glTexParameteri,
+                       GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MAG_FILTER, GL_LINEAR)
 import os