Skip to content
This repository has been archived by the owner on Oct 4, 2020. It is now read-only.

Commit

Permalink
Fixing some docstrings for formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
SamWhited committed May 22, 2015
1 parent 8aa06e6 commit b251226
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions rawkit/raw.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def close(self):
libraw.libraw_close(self.data)

def unpack(self):
"""Unpack and the raw data."""
"""Unpack the raw data."""
if not self.image_unpacked:
libraw.libraw_unpack(self.data)
self.image_unpacked = True
Expand All @@ -69,9 +69,10 @@ def save(self, filename=None, filetype='ppm'):
"""
Save the image data as a new PPM or TIFF image.
Keyword arguments:
filename -- A filename to save.
filetype -- A filetype (``ppm`` or ``tiff``).
:param filename: the name of an image file to save
:type filename: :class:`basestring`
:param filetype: the type of file to output (``ppm`` or ``tiff``)
:type filetype: :class:`basestring`
"""
assert filetype in ('ppm', 'tiff')
self.data.contents.params.output_tiff = 0 if filetype is 'ppm' else 1
Expand All @@ -86,8 +87,8 @@ def save_thumb(self, filename=None):
"""
Save the thumbnail data.
Keyword arguments:
filename -- A filename to save.
:param filename: the name of an image file to save
:type filename: :class:`basestring`
"""
self.unpack_thumb()

Expand Down

0 comments on commit b251226

Please sign in to comment.