[pypy-svn] r29268 - pypy/dist/pypy/translator/cli
antocuni at codespeak.net
antocuni at codespeak.net
Fri Jun 23 18:38:22 CEST 2006
Author: antocuni
Date: Fri Jun 23 18:38:17 2006
New Revision: 29268
Modified:
pypy/dist/pypy/translator/cli/sdk.py
Log:
Python-2.3-ify
Modified: pypy/dist/pypy/translator/cli/sdk.py
==============================================================================
--- pypy/dist/pypy/translator/cli/sdk.py (original)
+++ pypy/dist/pypy/translator/cli/sdk.py Fri Jun 23 18:38:17 2006
@@ -2,27 +2,27 @@
import py
class AbstractSDK(object):
- @classmethod
def _check_helper(cls, helper):
try:
py.path.local.sysfind(helper)
return helper
except py.error.ENOENT:
py.test.skip("%s is not on your path." % helper)
+ _check_helper = classmethod(_check_helper)
- @classmethod
def runtime(cls):
for item in cls.RUNTIME:
cls._check_helper(item)
return cls.RUNTIME
+ runtime = classmethod(runtime)
- @classmethod
def ilasm(cls):
return cls._check_helper(cls.ILASM)
+ ilasm = classmethod(ilasm)
- @classmethod
def csc(cls):
return cls._check_helper(cls.CSC)
+ csc = classmethod(csc)
class MicrosoftSDK(AbstractSDK):
RUNTIME = []
More information about the Pypy-commit
mailing list