Skip to content
This repository has been archived by the owner on Feb 20, 2022. It is now read-only.

Commit

Permalink
fix mistake in File constuctor (missing url)
Browse files Browse the repository at this point in the history
  • Loading branch information
dankrause committed Nov 8, 2014
1 parent d97d078 commit ed89d69
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions parse_rest/datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,8 @@ def from_native(cls, **kw):
return cls(**kw)

def __init__(self, name, content=None, mimetype=None, url=None):
if isinstance(name, dict):
name = name["name"]
self._name = name
self._file_url = None
self._file_url = url
self._api_url = '/'.join([API_ROOT, 'files', name])
self._content = content
self._mimetype = mimetype or mimetypes.guess_type(name)
Expand Down

0 comments on commit ed89d69

Please sign in to comment.