[pypy-svn] r51477 - pypy/dist/pypy/translator/oosupport
antocuni at codespeak.net
antocuni at codespeak.net
Thu Feb 14 09:57:41 CET 2008
Author: antocuni
Date: Thu Feb 14 09:57:41 2008
New Revision: 51477
Modified:
pypy/dist/pypy/translator/oosupport/constant.py
Log:
(cfbolz) s/NotImplemented/NotImplementedError
Modified: pypy/dist/pypy/translator/oosupport/constant.py
==============================================================================
--- pypy/dist/pypy/translator/oosupport/constant.py (original)
+++ pypy/dist/pypy/translator/oosupport/constant.py Thu Feb 14 09:57:41 2008
@@ -98,7 +98,7 @@
Loads the constant onto the stack. Can be invoked at any time.
"""
- raise NotImplemented
+ raise NotImplementedError
def _store_constant(self, gen, const):
"""
@@ -107,7 +107,7 @@
stores the constant from the stack
"""
- raise NotImplemented
+ raise NotImplementedError
# _________________________________________________________________
# Optional Constant Operations
@@ -303,27 +303,27 @@
""" Invoked with the assembler and sorted list of constants
before anything else. Expected to return a generator that will
be passed around after that (the parameter named 'gen'). """
- raise NotImplemented
+ raise NotImplementedError
def _declare_const(self, gen, const):
""" Invoked once for each constant before any steps are created. """
- raise NotImplemented
+ raise NotImplementedError
def _declare_step(self, gen, stepnum):
""" Invoked to begin step #stepnum. stepnum starts with 0 (!)
and proceeds monotonically. If _declare_step() is invoked,
there will always be a corresponding call to _close_step(). """
- raise NotImplemented
+ raise NotImplementedError
def _close_step(self, gen, stepnum):
""" Invoked to end step #stepnum. Never invoked without a
corresponding call from _declare_step() first. """
- raise NotImplemented
+ raise NotImplementedError
def _end_gen_constants(self, gen, numsteps):
""" Invoked as the very last thing. numsteps is the total number
of steps that were created. """
- raise NotImplemented
+ raise NotImplementedError
# ______________________________________________________________________
# Constant base class
@@ -395,7 +395,7 @@
and any classes that are used are loaded. Called when the
constant object is created.
"""
- raise NotImplemented
+ raise NotImplementedError
def create_pointer(self, gen):
"""
@@ -413,7 +413,7 @@
the pointer from the stack in the process; otherwise, a pop
is automatically inserted afterwards.
"""
- raise NotImplemented
+ raise NotImplementedError
# ____________________________________________________________
# Internal helpers
@@ -685,7 +685,7 @@
self.delegate_type = self.db.record_delegate(self.value._TYPE)
def initialize_data(self, constgen, gen):
- raise NotImplemented
+ raise NotImplementedError
# ______________________________________________________________________
# Weak Reference constants
More information about the Pypy-commit
mailing list