commit | 8377cd4fcd0d51d86834c9b0518d29aac3b49e18 | [log] [tgz] |
---|---|---|
author | Anthony Sottile <asottile@umich.edu> | Mon Feb 25 14:32:27 2019 -0800 |
committer | Giampaolo Rodola <g.rodola@gmail.com> | Mon Feb 25 23:32:27 2019 +0100 |
tree | e8d82c3567b2d39ff0bd285d25ce2d02359ae070 | |
parent | 9c3f284de598550be6687964c23fd7599e53b20e [diff] [blame] |
Clean up code which checked presence of os.{stat,lstat,chmod} (#11643)
diff --git a/Lib/dbm/dumb.py b/Lib/dbm/dumb.py index 6cef72a..864ad37 100644 --- a/Lib/dbm/dumb.py +++ b/Lib/dbm/dumb.py
@@ -278,8 +278,7 @@ __del__ = close def _chmod(self, file): - if hasattr(self._os, 'chmod'): - self._os.chmod(file, self._mode) + self._os.chmod(file, self._mode) def __enter__(self): return self