~ubuntu-branches/ubuntu/trusty/swift/trusty-updates

« back to all changes in this revision

Viewing changes to swift/common/ring/builder.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short, James Page, Chuck Short
  • Date: 2013-08-13 10:37:13 UTC
  • mfrom: (1.2.21)
  • Revision ID: package-import@ubuntu.com-20130813103713-1ctbx4zifyljs2aq
Tags: 1.9.1-0ubuntu1
[ James Page ]
* d/control: Update VCS fields for new branch locations.

[ Chuck Short ]
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1013
1013
 
1014
1014
        :param builder_file: path to builder file to save
1015
1015
        """
1016
 
        pickle.dump(self.to_dict(), open(builder_file, 'wb'), protocol=2)
 
1016
        with open(builder_file, 'wb') as f:
 
1017
            pickle.dump(self.to_dict(), f, protocol=2)
1017
1018
 
1018
1019
    def search_devs(self, search_values):
1019
1020
        """Search devices by parameters.