diff options
author | Nicolas Chauvat <nicolas.chauvat@logilab.fr> | 2009-07-19 02:07:55 +0200 |
---|---|---|
committer | Nicolas Chauvat <nicolas.chauvat@logilab.fr> | 2009-07-19 02:07:55 +0200 |
commit | a1cdde3320add8bbe4557639488bb4d2ef2861fd (patch) | |
tree | f579949c7a7fb9b4efb8a6ccdfcd35484854662b /contexts.py | |
parent | 6bb5a230a8df5ed2fe417c7b85491073da50dfd3 (diff) | |
download | logilab-common-a1cdde3320add8bbe4557639488bb4d2ef2861fd.tar.gz |
[cleanup] delete-trailing-whitespace
Diffstat (limited to 'contexts.py')
-rw-r--r-- | contexts.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contexts.py b/contexts.py index d88abfb..d44b339 100644 --- a/contexts.py +++ b/contexts.py @@ -1,4 +1,4 @@ -"""A few useful context managers +"""A few useful context managers :copyright: 2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved. :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr @@ -30,7 +30,7 @@ class tempdir(object): class pushd(object): def __init__(self, directory): self.directory = directory - + def __enter__(self): self.cwd = os.getcwd() os.chdir(self.directory) |