Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > 74621034535346a27cf89ad32f2b352c > files > 48

python2-rarfile-3.0-3.mga7.noarch.rpm


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>rarfile history &#8212; RarFile 3.0 documentation</title>
    <link rel="stylesheet" href="_static/classic.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    
    <script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/underscore.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <script type="text/javascript" src="_static/language_data.js"></script>
    
    <link rel="index" title="Index" href="genindex.html" />
    <link rel="search" title="Search" href="search.html" />
    <link rel="prev" title="rarfile FAQ" href="faq.html" /> 
  </head><body>
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="faq.html" title="rarfile FAQ"
             accesskey="P">previous</a> |</li>
        <li class="nav-item nav-item-0"><a href="index.html">RarFile 3.0 documentation</a> &#187;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body" role="main">
            
  <div class="section" id="rarfile-history">
<h1>rarfile history<a class="headerlink" href="#rarfile-history" title="Permalink to this headline">¶</a></h1>
<div class="section" id="version-3-0-2016-12-27">
<h2>Version 3.0 (2016-12-27)<a class="headerlink" href="#version-3-0-2016-12-27" title="Permalink to this headline">¶</a></h2>
<p>New feature:</p>
<ul>
<li><p class="first">Support RAR5 archive format.  It is actually completely different
archive format from RAR3 one, only is uses same file extension
and tools are old one.</p>
<p>Except incompatibilies noted below, most of code should notice no change,
existing <a class="reference internal" href="api.html#rarfile.RarInfo" title="rarfile.RarInfo"><code class="xref py py-class docutils literal notranslate"><span class="pre">RarInfo</span></code></a> fields will continue using RAR3-compatible
values (eg. <a class="reference internal" href="api.html#rarfile.RarInfo.host_os" title="rarfile.RarInfo.host_os"><code class="xref py py-attr docutils literal notranslate"><span class="pre">RarInfo.host_os</span></code></a>).  RAR5-specific values will use
new fields.</p>
</li>
</ul>
<p>Incompatibilities between rarfile v2.x and 3.x:</p>
<ul class="simple">
<li>Default <a class="reference internal" href="api.html#rarfile.PATH_SEP" title="rarfile.PATH_SEP"><code class="xref py py-data docutils literal notranslate"><span class="pre">PATH_SEP</span></code></a> is now ‘/’ instead ‘'.</li>
<li>Removed <code class="xref py py-data docutils literal notranslate"><span class="pre">NEED_COMMENTS</span></code> option, comments are always extracted.</li>
<li>Removed <code class="xref py py-data docutils literal notranslate"><span class="pre">UNICODE_COMMENTS</span></code> option, they are always decoded.</li>
<li>Removed <code class="xref py py-data docutils literal notranslate"><span class="pre">USE_DATETIME</span></code> option, <a class="reference internal" href="api.html#rarfile.RarInfo.date_time" title="rarfile.RarInfo.date_time"><code class="xref py py-attr docutils literal notranslate"><span class="pre">RarInfo.date_time</span></code></a> is always tuple,
<a class="reference internal" href="api.html#rarfile.RarInfo.mtime" title="rarfile.RarInfo.mtime"><code class="xref py py-attr docutils literal notranslate"><span class="pre">RarInfo.mtime</span></code></a>, <a class="reference internal" href="api.html#rarfile.RarInfo.atime" title="rarfile.RarInfo.atime"><code class="xref py py-attr docutils literal notranslate"><span class="pre">RarInfo.atime</span></code></a>, <a class="reference internal" href="api.html#rarfile.RarInfo.ctime" title="rarfile.RarInfo.ctime"><code class="xref py py-attr docutils literal notranslate"><span class="pre">RarInfo.ctime</span></code></a> and
<a class="reference internal" href="api.html#rarfile.RarInfo.arctime" title="rarfile.RarInfo.arctime"><code class="xref py py-attr docutils literal notranslate"><span class="pre">RarInfo.arctime</span></code></a> are always <code class="xref py py-class docutils literal notranslate"><span class="pre">datetime.datetime</span></code> objects.</li>
</ul>
<p>Fixes:</p>
<ul class="simple">
<li>Fixed bug when calling rarfp.open() on a RarInfo structure.</li>
</ul>
<p>Cleanups:</p>
<ul class="simple">
<li>Code refactor to allow 2 different file format parsers.</li>
<li>Code cleanups to pass modern linters.</li>
<li>New testing and linting setup based on <a class="reference external" href="https://tox.readthedocs.io/en/latest/">Tox</a>.</li>
<li>Use setuptools instead distutils for install.</li>
</ul>
</div>
<div class="section" id="version-2-8-2016-06-07">
<h2>Version 2.8 (2016-06-07)<a class="headerlink" href="#version-2-8-2016-06-07" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>Fix: support solid archives from in-memory file object.
Full archive will be written out to temp file.
[<a class="reference external" href="https://github.com/markokr/rarfile/issues/21">#21</a>]</li>
<li>Fix: ask unrar stop switches scanning,
to handle archive names starting with “-“.
(Alexander Shadchin)
[<a class="reference external" href="https://github.com/markokr/rarfile/pull/12">#12</a>]</li>
<li>Fix: add missing _parse_error variable to RarFile object.
(Gregory Mazzola)
[<a class="reference external" href="https://github.com/markokr/rarfile/pull/20">#20</a>]</li>
<li>Fix: return proper boolean from <a class="reference internal" href="api.html#rarfile.RarInfo.needs_password" title="rarfile.RarInfo.needs_password"><code class="xref py py-meth docutils literal notranslate"><span class="pre">RarInfo.needs_password()</span></code></a>.
[<a class="reference external" href="https://github.com/markokr/rarfile/issues/22">#22</a>]</li>
<li>Fix: do not insert non-string rarfile into exception string.
(Tim Muller)
[<a class="reference external" href="https://github.com/markokr/rarfile/pull/23">#23</a>]</li>
<li>Fix: make <a class="reference internal" href="api.html#rarfile.RarFile.extract" title="rarfile.RarFile.extract"><code class="xref py py-meth docutils literal notranslate"><span class="pre">RarFile.extract()</span></code></a> and <a class="reference internal" href="api.html#rarfile.RarFile.testrar" title="rarfile.RarFile.testrar"><code class="xref py py-meth docutils literal notranslate"><span class="pre">RarFile.testrar()</span></code></a>
support in-memory archives.</li>
<li>Use <a class="reference external" href="https://pypi.python.org/pypi/cryptography">cryptography</a> module as preferred crypto backend.
<a class="reference external" href="https://pypi.python.org/pypi/pycrypto">PyCrypto</a> will be used as fallback.</li>
<li>Cleanup: remove compat code for Python 2.4/2.5/2.6.</li>
</ul>
</div>
<div class="section" id="version-2-7-2014-11-23">
<h2>Version 2.7 (2014-11-23)<a class="headerlink" href="#version-2-7-2014-11-23" title="Permalink to this headline">¶</a></h2>
<ul>
<li><p class="first">Allow use of <a class="reference external" href="https://github.com/libarchive/libarchive/wiki/ManPageBsdtar1">bsdtar</a> as decompression backend.  It sits
on top of <a class="reference external" href="http://www.libarchive.org/">libarchive</a>, which has support for reading RAR archives.</p>
<p>Limitations of <code class="docutils literal notranslate"><span class="pre">libarchive</span></code> RAR backend:</p>
<ul class="simple">
<li>Does not support solid archives.</li>
<li>Does not support password-protected archives.</li>
<li>Does not support “parsing filters” used for audio/image/executable data,
so few non-solid, non-encrypted archives also fail.</li>
</ul>
<p>Now <a class="reference internal" href="api.html#module-rarfile" title="rarfile"><code class="xref py py-mod docutils literal notranslate"><span class="pre">rarfile</span></code></a> checks if <code class="docutils literal notranslate"><span class="pre">unrar</span></code> and if not then tries <code class="docutils literal notranslate"><span class="pre">bsdtar</span></code>.
If that works, then keeps using it.  If not then configuration
stays with <code class="docutils literal notranslate"><span class="pre">unrar</span></code> which will then appear in error messages.</p>
</li>
</ul>
<ul>
<li><p class="first">Both <a class="reference internal" href="api.html#rarfile.RarFile" title="rarfile.RarFile"><code class="xref py py-class docutils literal notranslate"><span class="pre">RarFile</span></code></a> and <a class="reference internal" href="api.html#rarfile.is_rarfile" title="rarfile.is_rarfile"><code class="xref py py-func docutils literal notranslate"><span class="pre">is_rarfile()</span></code></a> now accept file-like
object.  Eg. <code class="xref py py-class docutils literal notranslate"><span class="pre">io.BytesIO</span></code>.  Only requirement is that the object
must be seekable.  This mirrors similar funtionality in zipfile.</p>
<p>Based on patch by Chase Zhang.</p>
</li>
<li><p class="first">Uniform error handling.  <a class="reference internal" href="api.html#rarfile.RarFile" title="rarfile.RarFile"><code class="xref py py-class docutils literal notranslate"><span class="pre">RarFile</span></code></a> accepts <code class="docutils literal notranslate"><span class="pre">errors=&quot;strict&quot;</span></code>
argument.</p>
<p>Allow user to tune whether parsing and missing file errors will raise
exception.  If error is not raised, the error string can be queried
with <a class="reference internal" href="api.html#rarfile.RarFile.strerror" title="rarfile.RarFile.strerror"><code class="xref py py-meth docutils literal notranslate"><span class="pre">RarFile.strerror()</span></code></a> method.</p>
</li>
</ul>
</div>
<div class="section" id="version-2-6-2013-04-10">
<h2>Version 2.6 (2013-04-10)<a class="headerlink" href="#version-2-6-2013-04-10" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>Add context manager support for <a class="reference internal" href="api.html#rarfile.RarFile" title="rarfile.RarFile"><code class="xref py py-class docutils literal notranslate"><span class="pre">RarFile</span></code></a> class.
Both <a class="reference internal" href="api.html#rarfile.RarFile" title="rarfile.RarFile"><code class="xref py py-class docutils literal notranslate"><span class="pre">RarFile</span></code></a> and <a class="reference internal" href="api.html#rarfile.RarExtFile" title="rarfile.RarExtFile"><code class="xref py py-class docutils literal notranslate"><span class="pre">RarExtFile</span></code></a> support
<code class="xref std std-keyword docutils literal notranslate"><span class="pre">with</span></code> statement now.
(Wentao Han)</li>
<li><a class="reference internal" href="api.html#rarfile.RarFile.volumelist" title="rarfile.RarFile.volumelist"><code class="xref py py-meth docutils literal notranslate"><span class="pre">RarFile.volumelist()</span></code></a> method, returns filenames of archive volumes.</li>
<li>Re-throw clearer error in case <code class="docutils literal notranslate"><span class="pre">unrar</span></code> is not found in <code class="docutils literal notranslate"><span class="pre">PATH</span></code>.</li>
<li>Sync new unrar4.x error code from <code class="docutils literal notranslate"><span class="pre">rar.txt</span></code>.</li>
<li>Use Sphinx for documentation, push docs to <a class="reference external" href="https://rarfile.readthedocs.org/">rtfd.org</a></li>
</ul>
</div>
<div class="section" id="version-2-5-2012-01-19">
<h2>Version 2.5 (2012-01-19)<a class="headerlink" href="#version-2-5-2012-01-19" title="Permalink to this headline">¶</a></h2>
<p>Fixes:</p>
<ul class="simple">
<li><a class="reference internal" href="api.html#rarfile.RarExtFile.read" title="rarfile.RarExtFile.read"><code class="xref py py-meth docutils literal notranslate"><span class="pre">RarExtFile.read()</span></code></a> and <a class="reference internal" href="api.html#rarfile.RarExtFile.readinto" title="rarfile.RarExtFile.readinto"><code class="xref py py-meth docutils literal notranslate"><span class="pre">RarExtFile.readinto()</span></code></a> now do looping read
to work properly on short reads.  Important for Python 3.2+ where read from pipe
can return short result even on blocking file descriptor.</li>
<li>Proper error reporting in <a class="reference internal" href="api.html#rarfile.RarFile.extract" title="rarfile.RarFile.extract"><code class="xref py py-meth docutils literal notranslate"><span class="pre">RarFile.extract()</span></code></a>, <a class="reference internal" href="api.html#rarfile.RarFile.extractall" title="rarfile.RarFile.extractall"><code class="xref py py-meth docutils literal notranslate"><span class="pre">RarFile.extractall()</span></code></a>
and  <a class="reference internal" href="api.html#rarfile.RarFile.testrar" title="rarfile.RarFile.testrar"><code class="xref py py-meth docutils literal notranslate"><span class="pre">RarFile.testrar()</span></code></a>.</li>
<li><a class="reference internal" href="api.html#rarfile.RarExtFile.read" title="rarfile.RarExtFile.read"><code class="xref py py-meth docutils literal notranslate"><span class="pre">RarExtFile.read()</span></code></a> from unrar pipe: prefer to return unrar error code,
if thats not available, do own error checks.</li>
<li>Avoid string addition in <a class="reference internal" href="api.html#rarfile.RarExtFile.read" title="rarfile.RarExtFile.read"><code class="xref py py-meth docutils literal notranslate"><span class="pre">RarExtFile.read()</span></code></a>, instead use always list+join to
merge multi-part reads.</li>
<li>dumprar: dont re-encode byte strings (Python 2.x).  This avoids
unneccessary failure when printing invalid unicode.</li>
</ul>
</div>
<div class="section" id="version-2-4-2011-11-05">
<h2>Version 2.4 (2011-11-05)<a class="headerlink" href="#version-2-4-2011-11-05" title="Permalink to this headline">¶</a></h2>
<p>Fixes:</p>
<ul class="simple">
<li><code class="xref py py-data docutils literal notranslate"><span class="pre">USE_DATETIME</span></code>: survive bad values from RAR</li>
<li>Fix bug in corrupt unicode filename handling</li>
<li>dumprar: make unicode chars work with both pipe and console</li>
</ul>
</div>
<div class="section" id="version-2-3-2011-07-03">
<h2>Version 2.3 (2011-07-03)<a class="headerlink" href="#version-2-3-2011-07-03" title="Permalink to this headline">¶</a></h2>
<p>Features:</p>
<ul class="simple">
<li>Support .seek() method on file streams.  (Kristian Larsson)</li>
<li>Support .readinto() method on file streams.  Optimized implementation
is available on Python 2.6+ where <code class="xref py py-class docutils literal notranslate"><span class="pre">memoryview</span></code> is available.</li>
<li>Support file comments - <a class="reference internal" href="api.html#rarfile.RarInfo.comment" title="rarfile.RarInfo.comment"><code class="xref py py-attr docutils literal notranslate"><span class="pre">RarInfo.comment</span></code></a> contains decompressed data if available.</li>
<li>File objects returned by <a class="reference internal" href="api.html#rarfile.RarFile.open" title="rarfile.RarFile.open"><code class="xref py py-meth docutils literal notranslate"><span class="pre">RarFile.open()</span></code></a> are <code class="xref py py-class docutils literal notranslate"><span class="pre">io.RawIOBase</span></code>-compatible.
They can further wrapped with <code class="xref py py-class docutils literal notranslate"><span class="pre">io.BufferedReader</span></code> and <code class="xref py py-class docutils literal notranslate"><span class="pre">io.TextIOWrapper</span></code>.</li>
<li>Now .getinfo() uses dict lookup instead of sequential scan when
searching archive entry.  This speeds up prococessing for archives that
have many entries.</li>
<li>Option <code class="xref py py-data docutils literal notranslate"><span class="pre">UNICODE_COMMENTS</span></code> to decode both archive and file comments to unicode.
It uses <a class="reference internal" href="api.html#rarfile.TRY_ENCODINGS" title="rarfile.TRY_ENCODINGS"><code class="xref py py-data docutils literal notranslate"><span class="pre">TRY_ENCODINGS</span></code></a> for list of encodings to try.  If off, comments are
left as byte strings.  Default: 0</li>
<li>Option <a class="reference internal" href="api.html#rarfile.PATH_SEP" title="rarfile.PATH_SEP"><code class="xref py py-data docutils literal notranslate"><span class="pre">PATH_SEP</span></code></a> to change path separator.  Default: <code class="docutils literal notranslate"><span class="pre">r'\'</span></code>,
set <code class="docutils literal notranslate"><span class="pre">rarfile.PATH_SEP='/'</span></code> to be compatibe with zipfile.</li>
<li>Option <code class="xref py py-data docutils literal notranslate"><span class="pre">USE_DATETIME</span></code> to convert timestamps to datetime objects.
Default: 0, timestamps are tuples.</li>
<li>Option <a class="reference internal" href="api.html#rarfile.TRY_ENCODINGS" title="rarfile.TRY_ENCODINGS"><code class="xref py py-data docutils literal notranslate"><span class="pre">TRY_ENCODINGS</span></code></a> to allow tuning attempted encoding list.</li>
<li>Reorder <a class="reference internal" href="api.html#rarfile.RarInfo" title="rarfile.RarInfo"><code class="xref py py-class docutils literal notranslate"><span class="pre">RarInfo</span></code></a> fiels to better show zipfile-compatible fields.</li>
<li>Standard regtests to make sure various features work</li>
</ul>
<p>Compatibility:</p>
<ul class="simple">
<li>Drop <code class="xref py py-attr docutils literal notranslate"><span class="pre">RarInfo.unicode_filename</span></code>, plain <a class="reference internal" href="api.html#rarfile.RarInfo.filename" title="rarfile.RarInfo.filename"><code class="xref py py-attr docutils literal notranslate"><span class="pre">RarInfo.filename</span></code></a> is already unicode since 2.0.</li>
<li>.read(-1) reads now until EOF.  Previously it returned empty buffer.</li>
</ul>
<p>Fixes:</p>
<ul class="simple">
<li>Make encrypted headers work with Python 3.x bytes() and with old 2.x ‘sha’ module.</li>
<li>Simplify <code class="xref py py-class docutils literal notranslate"><span class="pre">subprocess.Popen</span></code> usage when launching <code class="docutils literal notranslate"><span class="pre">unrar</span></code>.  Previously
it tried to optimize and work around OS/Python bugs, but this is not
maintainable.</li>
<li>Use temp rar file hack on multi-volume archives too.</li>
<li>Always .wait() on unrar, to avoid zombies</li>
<li>Convert struct.error to BadRarFile</li>
<li>Plug some fd leaks.  Affected: Jython, PyPy.</li>
<li>Broken archives are handled more robustly.</li>
</ul>
</div>
<div class="section" id="version-2-2-2010-08-19">
<h2>Version 2.2 (2010-08-19)<a class="headerlink" href="#version-2-2-2010-08-19" title="Permalink to this headline">¶</a></h2>
<p>Fixes:</p>
<ul class="simple">
<li>Relaxed volume naming.  Now it just calculates new volume name by finding number
in old one and increasing it, without any expectations what that number should be.</li>
<li>Files with 4G of compressed data in one colume were handled wrong.  Fix.</li>
<li>DOS timestamp seconds need to be multiplied with 2.</li>
<li>Correct EXTTIME parsing.</li>
</ul>
<p>Cleanups:</p>
<ul class="simple">
<li>Compressed size is per-volume, sum them together, so that user sees complete
compressed size for files split over several volumes.</li>
<li>dumprar: Show unknown bits.</li>
<li>Use <code class="xref py py-class docutils literal notranslate"><span class="pre">struct.Struct</span></code> to cache unpack formats.</li>
<li>Support missing <code class="xref py py-data docutils literal notranslate"><span class="pre">os.devnull</span></code>. (Python 2.3)</li>
</ul>
</div>
<div class="section" id="version-2-1-2010-07-31">
<h2>Version 2.1 (2010-07-31)<a class="headerlink" href="#version-2-1-2010-07-31" title="Permalink to this headline">¶</a></h2>
<p>Features:</p>
<ul class="simple">
<li>Minimal implmentation for <a class="reference internal" href="api.html#rarfile.RarFile.extract" title="rarfile.RarFile.extract"><code class="xref py py-meth docutils literal notranslate"><span class="pre">RarFile.extract()</span></code></a>, <a class="reference internal" href="api.html#rarfile.RarFile.extractall" title="rarfile.RarFile.extractall"><code class="xref py py-meth docutils literal notranslate"><span class="pre">RarFile.extractall()</span></code></a>, <a class="reference internal" href="api.html#rarfile.RarFile.testrar" title="rarfile.RarFile.testrar"><code class="xref py py-meth docutils literal notranslate"><span class="pre">RarFile.testrar()</span></code></a>.
They are simple shortcuts to <code class="docutils literal notranslate"><span class="pre">unrar</span></code> invocation.</li>
<li>Accept <a class="reference internal" href="api.html#rarfile.RarInfo" title="rarfile.RarInfo"><code class="xref py py-class docutils literal notranslate"><span class="pre">RarInfo</span></code></a> object where filename is expected.</li>
<li>Include <code class="docutils literal notranslate"><span class="pre">dumprar.py</span></code> in .tgz.  It can be used to visualize RAR structure
and test module.</li>
<li>Support for encrypted file headers.</li>
</ul>
<p>Fixes:</p>
<ul class="simple">
<li>Don’t read past ENDARC, there could be non-RAR data there.</li>
<li>RAR 2.x: It does not write ENDARC, but our volume code expected it.  Fix that.</li>
<li>RAR 2.x: Support more than 200 old-style volumes.</li>
</ul>
<p>Cleanups:</p>
<ul class="simple">
<li>Load comment only when requested.</li>
<li>Cleanup of internal config variables.  They should have now final names.</li>
<li><a class="reference internal" href="api.html#rarfile.RarFile.open" title="rarfile.RarFile.open"><code class="xref py py-meth docutils literal notranslate"><span class="pre">RarFile.open()</span></code></a>: Add mode=r argument to match zipfile.</li>
<li>Doc and comments cleanup, minimize duplication.</li>
<li>Common wrappers for both compressed and uncompressed files,
now <a class="reference internal" href="api.html#rarfile.RarFile.open" title="rarfile.RarFile.open"><code class="xref py py-meth docutils literal notranslate"><span class="pre">RarFile.open()</span></code></a> also does CRC-checking.</li>
</ul>
</div>
<div class="section" id="version-2-0-2010-04-29">
<h2>Version 2.0 (2010-04-29)<a class="headerlink" href="#version-2-0-2010-04-29" title="Permalink to this headline">¶</a></h2>
<p>Features:</p>
<ul class="simple">
<li>Python 3 support.  Still works with 2.x.</li>
<li>Parses extended time fields. (.mtime, .ctime, .atime)</li>
<li><a class="reference internal" href="api.html#rarfile.RarFile.open" title="rarfile.RarFile.open"><code class="xref py py-meth docutils literal notranslate"><span class="pre">RarFile.open()</span></code></a> method.  This makes possible to process large
entries that do not fit into memory.</li>
<li>Supports password-protected archives.</li>
<li>Supports archive comments.</li>
</ul>
<p>Cleanups:</p>
<ul class="simple">
<li>Uses <code class="xref py py-mod docutils literal notranslate"><span class="pre">subprocess</span></code> module to launch <code class="docutils literal notranslate"><span class="pre">unrar</span></code>.</li>
<li>.filename is always Unicode string, .unicode_filename is now deprecated.</li>
<li>.CRC is unsigned again, as python3 crc32() is unsigned.</li>
</ul>
</div>
<div class="section" id="version-1-1-2008-08-31">
<h2>Version 1.1 (2008-08-31)<a class="headerlink" href="#version-1-1-2008-08-31" title="Permalink to this headline">¶</a></h2>
<p>Fixes:</p>
<ul class="simple">
<li>Replace <code class="xref py py-func docutils literal notranslate"><span class="pre">os.tempnam()</span></code> with <code class="xref py py-func docutils literal notranslate"><span class="pre">tempfile.mkstemp()</span></code>.  (Jason Moiron)</li>
<li>Fix infinite loop in _extract_hack on unexpected EOF</li>
<li><a class="reference internal" href="api.html#rarfile.RarInfo.CRC" title="rarfile.RarInfo.CRC"><code class="xref py py-attr docutils literal notranslate"><span class="pre">RarInfo.CRC</span></code></a> is now signed value to match crc32()</li>
<li><a class="reference internal" href="api.html#rarfile.RarFile.read" title="rarfile.RarFile.read"><code class="xref py py-meth docutils literal notranslate"><span class="pre">RarFile.read()</span></code></a> now checks file crc</li>
</ul>
<p>Cleanups:</p>
<ul class="simple">
<li>more docstrings</li>
<li>throw proper exceptions (subclasses of <a class="reference internal" href="api.html#rarfile.Error" title="rarfile.Error"><code class="xref py py-exc docutils literal notranslate"><span class="pre">rarfile.Error</span></code></a>)</li>
<li>RarInfo has fields pre-initialized, so they appear in help()</li>
<li>rename RarInfo.data to RarInfo.header_data</li>
<li>dont use “print” when header parsing fails</li>
<li>use try/finally to delete temp rar</li>
</ul>
</div>
<div class="section" id="version-1-0-2005-08-08">
<h2>Version 1.0 (2005-08-08)<a class="headerlink" href="#version-1-0-2005-08-08" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>First release.</li>
</ul>
</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
        <div class="sphinxsidebarwrapper">
  <h3><a href="index.html">Table of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#">rarfile history</a><ul>
<li><a class="reference internal" href="#version-3-0-2016-12-27">Version 3.0 (2016-12-27)</a></li>
<li><a class="reference internal" href="#version-2-8-2016-06-07">Version 2.8 (2016-06-07)</a></li>
<li><a class="reference internal" href="#version-2-7-2014-11-23">Version 2.7 (2014-11-23)</a></li>
<li><a class="reference internal" href="#version-2-6-2013-04-10">Version 2.6 (2013-04-10)</a></li>
<li><a class="reference internal" href="#version-2-5-2012-01-19">Version 2.5 (2012-01-19)</a></li>
<li><a class="reference internal" href="#version-2-4-2011-11-05">Version 2.4 (2011-11-05)</a></li>
<li><a class="reference internal" href="#version-2-3-2011-07-03">Version 2.3 (2011-07-03)</a></li>
<li><a class="reference internal" href="#version-2-2-2010-08-19">Version 2.2 (2010-08-19)</a></li>
<li><a class="reference internal" href="#version-2-1-2010-07-31">Version 2.1 (2010-07-31)</a></li>
<li><a class="reference internal" href="#version-2-0-2010-04-29">Version 2.0 (2010-04-29)</a></li>
<li><a class="reference internal" href="#version-1-1-2008-08-31">Version 1.1 (2008-08-31)</a></li>
<li><a class="reference internal" href="#version-1-0-2005-08-08">Version 1.0 (2005-08-08)</a></li>
</ul>
</li>
</ul>

  <h4>Previous topic</h4>
  <p class="topless"><a href="faq.html"
                        title="previous chapter">rarfile FAQ</a></p>
  <div role="note" aria-label="source link">
    <h3>This Page</h3>
    <ul class="this-page-menu">
      <li><a href="_sources/news.rst.txt"
            rel="nofollow">Show Source</a></li>
    </ul>
   </div>
<div id="searchbox" style="display: none" role="search">
  <h3>Quick search</h3>
    <div class="searchformwrapper">
    <form class="search" action="search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    </div>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="faq.html" title="rarfile FAQ"
             >previous</a> |</li>
        <li class="nav-item nav-item-0"><a href="index.html">RarFile 3.0 documentation</a> &#187;</li> 
      </ul>
    </div>
    <div class="footer" role="contentinfo">
        &#169; Copyright 2005-2016, Marko Kreen.
    </div>
  </body>
</html>