[Bugs] #1563 UNSP: call close() after completing version file write

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Mon Nov 23 05:39:58 EST 2009


#1563: call close() after completing version file write
------------------------------------------+---------------------------------
    Reporter:  sayamindu                  |          Owner:  alsroot                    
        Type:  defect                     |         Status:  assigned                   
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  sugar-datastore            |        Version:  Git as of bugdate          
    Severity:  Unspecified                |       Keywords:  r?                         
Distribution:  Unspecified                |   Status_field:  Unconfirmed                
------------------------------------------+---------------------------------
Changes (by dsd):

 * cc: dsd (added)


Comment:

 Python will automatically close the file when the reference count of the
 object drops to 0, which in this case will happen at the return point of
 the function.

 The fsync changes may be worthwhile though, but they should be accompanied
 with a comment explaining why this particular file deserves the special
 treatment.

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/1563#comment:4>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list