[tahoe-lafs-trac-stream] [tahoe-lafs] #1520: Assertions in storage/mutable.py provide assurance that the struct library performs correct size transforms

tahoe-lafs trac at tahoe-lafs.org
Thu Sep 1 01:53:29 PDT 2011


#1520: Assertions in storage/mutable.py provide assurance that the struct library
performs correct size transforms
--------------------------+---------------------------
 Reporter:  zancas        |          Owner:  nobody
     Type:  defect        |         Status:  new
 Priority:  major         |      Milestone:  undecided
Component:  unknown       |        Version:  1.9.0a1
 Keywords:  code mutable  |  Launchpad Bug:
--------------------------+---------------------------
 The assert statements at the top of this module are intended to provide
 assurance that the correct size is indicated by the arguments to the
 various struct methods used by the mutable file.  A syntax error was
 preventing the intended function of these asserts.
   The attached patch corrects that syntax and provides the desired
 assurance.

    In particular the relevant '>' format character is inserted in the
 assertion, and the statement is converted into a comparison with '=='.

-- 
Ticket URL: <http://tahoe-lafs.org/trac/tahoe-lafs/ticket/1520>
tahoe-lafs <http://tahoe-lafs.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list