[pypy-svn] r62255 - in pypy/trunk/pypy/lang/gameboy: . test
cami at codespeak.net
cami at codespeak.net
Fri Feb 27 22:18:51 CET 2009
Author: cami
Date: Fri Feb 27 22:18:50 2009
New Revision: 62255
Modified:
pypy/trunk/pypy/lang/gameboy/cartridge.py
pypy/trunk/pypy/lang/gameboy/cpu.py
pypy/trunk/pypy/lang/gameboy/gameboy.py
pypy/trunk/pypy/lang/gameboy/test/test_memory_bank_controller.py
pypy/trunk/pypy/lang/gameboy/video.py
Log:
removed some superfluous imports of pdb
Modified: pypy/trunk/pypy/lang/gameboy/cartridge.py
==============================================================================
--- pypy/trunk/pypy/lang/gameboy/cartridge.py (original)
+++ pypy/trunk/pypy/lang/gameboy/cartridge.py Fri Feb 27 22:18:50 2009
@@ -12,7 +12,6 @@
#from pypy.rlib.rstr import str_replace
import os
-import pdb
# HELPERS ----------------------------------------------------------------------
Modified: pypy/trunk/pypy/lang/gameboy/cpu.py
==============================================================================
--- pypy/trunk/pypy/lang/gameboy/cpu.py (original)
+++ pypy/trunk/pypy/lang/gameboy/cpu.py Fri Feb 27 22:18:50 2009
@@ -4,7 +4,6 @@
from pypy.lang.gameboy.interrupt import *
from pypy.lang.gameboy.cpu_register import Register, DoubleRegister, \
FlagRegister, ImmediatePseudoRegister
-import pdb
# ---------------------------------------------------------------------------
Modified: pypy/trunk/pypy/lang/gameboy/gameboy.py
==============================================================================
--- pypy/trunk/pypy/lang/gameboy/gameboy.py (original)
+++ pypy/trunk/pypy/lang/gameboy/gameboy.py Fri Feb 27 22:18:50 2009
@@ -16,7 +16,6 @@
from pypy.lang.gameboy.video import *
from pypy.lang.gameboy.cartridge import *
-import pdb
class GameBoy(object):
Modified: pypy/trunk/pypy/lang/gameboy/test/test_memory_bank_controller.py
==============================================================================
--- pypy/trunk/pypy/lang/gameboy/test/test_memory_bank_controller.py (original)
+++ pypy/trunk/pypy/lang/gameboy/test/test_memory_bank_controller.py Fri Feb 27 22:18:50 2009
@@ -3,7 +3,6 @@
from pypy.lang.gameboy.timer import Clock
from pypy.lang.gameboy import constants
import py
-import pdb
class TestClock(object):
def __init__(self):
@@ -256,7 +255,6 @@
mbc.ram_enable = True
for address in range(0xA000, 0xBFFF+1):
mbc.write(address, value)
- #pdb.runcall(mbc.write, address, value)
assert mbc.ram[mbc.ram_bank + (address & 0x1FFF)] == value
assert mbc.read(address) == value;
value += 1
Modified: pypy/trunk/pypy/lang/gameboy/video.py
==============================================================================
--- pypy/trunk/pypy/lang/gameboy/video.py (original)
+++ pypy/trunk/pypy/lang/gameboy/video.py Fri Feb 27 22:18:50 2009
@@ -543,9 +543,9 @@
self.swap_object_indices(rightmost, index)
def swap_object_indices(self, index_a, index_b):
- data = self.objects[index_a]
- self.objects[index_a] = self.objects[index_b]
- self.objects[index_b] = data
+ data = self.objects[index_a]
+ self.objects[index_a] = self.objects[index_b]
+ self.objects[index_b] = data
# ---------------------------------------------------------------------
More information about the Pypy-commit
mailing list