Skip to content
Open

Pep8 #27

Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove unused parameters
  • Loading branch information
fpietka committed Oct 16, 2016
commit 21ef148eae7b18ef03b65cdcd670974525775a87
4 changes: 2 additions & 2 deletions dailymotion.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def logout(self):
def get(self, endpoint, params=None):
return self.call(endpoint, params=params)

def post(self, endpoint, params=None, files=None):
def post(self, endpoint, params=None):
return self.call(endpoint, method='POST', params=params)

def delete(self, endpoint, params=None):
Expand All @@ -385,7 +385,7 @@ def call(self, endpoint, method='GET', params=None, files=None):

return self.request(endpoint, method, params, files)

def upload(self, file_path, progress=None):
def upload(self, file_path):
if not os.path.exists(file_path):
raise IOError("[Errno 2] No such file or directory: '%s'" %
file_path)
Expand Down