Unverified Commit 97b8acc9 authored by Thom Wiggers's avatar Thom Wiggers 📐
Browse files

Fix pep8

parent 91dcf663
import os
from django.utils import timezone from django.utils import timezone
from django.utils.six.moves.urllib.parse import unquote
def datetime_to_lectureyear(date): def datetime_to_lectureyear(date):
...@@ -28,8 +25,3 @@ def datetime_to_lectureyear(date): ...@@ -28,8 +25,3 @@ def datetime_to_lectureyear(date):
if date < sept_1.date(): if date < sept_1.date():
return date.year - 1 return date.year - 1
return date.year return date.year
if __name__ == "__main__":
import doctest
doctest.testmod()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment