Skip to content

Commit

Permalink
Resave with excess whitespace removed
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Dec 11, 2012
1 parent 7437ee9 commit dccb3e0
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions paver/path.py
Expand Up @@ -20,15 +20,15 @@

@contextmanager
def pushd(dir):
'''A context manager (Python 2.5+ only) for stepping into a
directory and automatically coming back to the previous one.
'''A context manager (Python 2.5+ only) for stepping into a
directory and automatically coming back to the previous one.
The original directory is returned. Usage is like this::
from __future__ import with_statement
# the above line is only needed for Python 2.5
from paver.easy import *
@task
def my_task():
with pushd('new/directory') as old_dir:
Expand Down Expand Up @@ -85,4 +85,3 @@ def wrapper(*args, **kwds):
for name in _METHOD_BLACKLIST:
wrapper = _make_wrapper(name, getattr(_orig_path, name))
setattr(path, name, wrapper)

0 comments on commit dccb3e0

Please sign in to comment.