Skip to content

Commit

Permalink
remove unused super() call in NullTarget
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhantgoel committed May 21, 2018
1 parent a9a4b9e commit 096ad94
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions streaming_form_data/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,14 @@ def finish(self):


class NullTarget(BaseTarget):
def __init__(self):
super().__init__()

def data_received(self, chunk):
pass


class ValueTarget(BaseTarget):
def __init__(self):
super().__init__()

self._values = []

def data_received(self, chunk):
Expand All @@ -57,6 +55,7 @@ def value(self):
class FileTarget(BaseTarget):
def __init__(self, filename, allow_overwrite=True):
super().__init__()

self.filename = filename

self._openmode = 'wb' if allow_overwrite else 'xb'
Expand All @@ -75,6 +74,7 @@ def finish(self):
class SHA256Target(BaseTarget):
def __init__(self):
super().__init__()

self._hash = hashlib.sha256()

def data_received(self, chunk):
Expand Down

0 comments on commit 096ad94

Please sign in to comment.