Commits

George Notaras committed 382e072

Added docstring to get_width_height_from_string()

Comments (0)

Files changed (1)

src/thumbnail_works/utils.py

 
 
 def get_width_height_from_string(size):
+    """Returns a (WIDTH, HEIGHT) tuple.
+    
+    Accepts a string in the form WIDTHxHEIGHT
+    
+    Raises ImageSizeError when on invalid image size.  
+    
+    """
     try:
         bits = size.split('x', 1)
     except AttributeError: