~styluseater/swift/lp610583

« back to all changes in this revision

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

  • Committer: Tarmac
  • Author(s): Monty Taylor
  • Date: 2010-07-26 15:27:29 UTC
  • mfrom: (40.1.1 fix-pep8)
  • Revision ID: hudson@openstack.org-20100726152729-4dz6gc11ky2qvffi
Fixed PEP8 warnings

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
class RingData(object):
26
26
    """Partitioned consistent hashing ring data (used for serialization)."""
 
27
 
27
28
    def __init__(self, replica2part2dev_id, devs, part_shift):
28
29
        self.devs = devs
29
30
        self._replica2part2dev_id = replica2part2dev_id
37
38
    :param pickle_gz_path: path to ring file
38
39
    :param reload_time: time interval in seconds to check for a ring change
39
40
    """
 
41
 
40
42
    def __init__(self, pickle_gz_path, reload_time=15):
41
43
        self.pickle_gz_path = pickle_gz_path
42
44
        self.reload_time = reload_time