Skip to content

Commit

Permalink
style: refactor docstrings for log.py and views.py
Browse files Browse the repository at this point in the history
  • Loading branch information
joanise committed Feb 4, 2022
1 parent c36ffa3 commit c369d17
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 23 deletions.
15 changes: 4 additions & 11 deletions readalongs/log.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

#######################################################################
#
# log.py
#
# Setup a logger that has colours!
#
#######################################################################
"""
log.py: Setup a logger that has colours!
"""

import logging

Expand All @@ -17,7 +10,7 @@


def setup_logger(name):
""" Create logger and configure with cool colors!
"""Create logger and configure with cool colors!
"""
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(name)
Expand Down
18 changes: 6 additions & 12 deletions readalongs/views.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

#######################################################################
#
# views.py
#
# Views for ReadAlong Studio web application
# Interactions are described as websocket events and responses
# Corresponding JavaScript is found in readalongs/static/js/main.js
#
#######################################################################
"""
views.py: Views for ReadAlong Studio web application
Interactions are described as websocket events and responses
Corresponding JavaScript is found in readalongs/static/js/main.js
"""

import io
import os
Expand Down

0 comments on commit c369d17

Please sign in to comment.