Skip to content

Commit

Permalink
[SPARK-2470] PEP8 fixes to storagelevel.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nchammas committed Jul 20, 2014
1 parent b3b96cf commit 8f8e4c0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/pyspark/storagelevel.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

__all__ = ["StorageLevel"]


class StorageLevel:
"""
Flags for controlling the storage of an RDD. Each StorageLevel records whether to use memory,
Expand All @@ -25,7 +26,7 @@ class StorageLevel:
Also contains static constants for some commonly used storage levels, such as MEMORY_ONLY.
"""

def __init__(self, useDisk, useMemory, useOffHeap, deserialized, replication = 1):
def __init__(self, useDisk, useMemory, useOffHeap, deserialized, replication=1):
self.useDisk = useDisk
self.useMemory = useMemory
self.useOffHeap = useOffHeap
Expand Down Expand Up @@ -55,4 +56,4 @@ def __str__(self):
StorageLevel.MEMORY_AND_DISK_2 = StorageLevel(True, True, False, True, 2)
StorageLevel.MEMORY_AND_DISK_SER = StorageLevel(True, True, False, False)
StorageLevel.MEMORY_AND_DISK_SER_2 = StorageLevel(True, True, False, False, 2)
StorageLevel.OFF_HEAP = StorageLevel(False, False, True, False, 1)
StorageLevel.OFF_HEAP = StorageLevel(False, False, True, False, 1)

0 comments on commit 8f8e4c0

Please sign in to comment.