Permalink
Browse files

Decorators require Python 2.4. My mistake.

  • Loading branch information...
1 parent 986401c commit 5325db140a0801b181860360e87e69784ae5c3e2 @jaraco committed Nov 14, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 path.py
View
@@ -95,13 +95,12 @@ class path(unicode):
module = os.path
"The path module to use for path operations."
- @classmethod
- @simple_cache
def using_module(cls, module):
subclass_name = cls.__name__ + '_' + module.__name__
bases = (cls,)
ns = {'module': module}
return type(subclass_name, bases, ns)
+ using_module = classmethod(simple_cache(using_module))
# --- Special Python methods.
@@ -139,10 +138,10 @@ def __enter__(self):
def __exit__(self, *_):
os.chdir(self._old_dir)
- @classmethod
def getcwd(cls):
""" Return the current working directory as a path object. """
return cls(os.getcwdu())
+ getcwd = classmethod(getcwd)
#
# --- Operations on path strings.

0 comments on commit 5325db1

Please sign in to comment.