dukerson/aww.py — pull request #1 by joshdk (2012-12-25 05:51:59+00:00)
Title: Refactored how we handle and display images

The main purpose behind this fork is so that I can incorporate your (awesome and straight-forward) [/r/aww](http://www.reddit.com/r/aww) image-fetching code, and [some other code I'm writing](https://github.com/joshdk/imgshow), into a new program.

- The grab_cute_image() function now either returns a PIL image on success, or
None on failure.
- The code can now be imported, and the images obtained can be consumed by other
functions, libraries, etc.
- Added a main() so that everything still works the same if we just run it from
the command line.