pep8 and other code-style changes
[wolnelektury.git] / src / api / helpers.py
index 62578e7..03fc18c 100644 (file)
@@ -5,10 +5,12 @@
 from time import mktime
 from piston.resource import Resource
 
+
 def timestamp(dtime):
-    "converts a datetime.datetime object to a timestamp int"
+    """converts a datetime.datetime object to a timestamp int"""
     return int(mktime(dtime.timetuple()))
 
+
 class CsrfExemptResource(Resource):
     """A Custom Resource that is csrf exempt"""
     def __init__(self, handler, authentication=None):