Commit 5f14332c authored by owsla's avatar owsla

Properly fix no 'inc_compressed' attribute bug.


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@937 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent d485d11e
New in v1.2.2 (????/??/??) New in v1.2.2 (????/??/??)
--------------------------- ---------------------------
Properly fix "AttributeError: RPath instance has no attribute 'inc_compressed'"
bug. Fix in 1.1.12 was in correct place, but wrong solution. (Andrew Ferguson)
Improve support for Python 2.5, which refactored the built-in exceptions so Improve support for Python 2.5, which refactored the built-in exceptions so
that SystemExit and KeyboardInterrupt no longer derive from Exception. that SystemExit and KeyboardInterrupt no longer derive from Exception.
Closes support request #106504. (Andrew Ferguson) Closes support request #106504. (Andrew Ferguson)
......
...@@ -379,8 +379,7 @@ class FlatFile: ...@@ -379,8 +379,7 @@ class FlatFile:
self.fileobj = self.rp.open("rb", compress) self.fileobj = self.rp.open("rb", compress)
else: else:
assert mode == 'w' assert mode == 'w'
if not check_path: rp_base.isincfile() if compress and check_path and not rp_base.isinccompressed()):
if compress and not rp_base.isinccompressed():
def callback(rp): self.rp = rp def callback(rp): self.rp = rp
self.fileobj = rpath.MaybeGzip(rp_base, callback) self.fileobj = rpath.MaybeGzip(rp_base, callback)
else: else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment