Skip to content

Commit

Permalink
Fix style errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
skorokithakis committed Dec 29, 2016
1 parent bf373af commit c823c11
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
7 changes: 4 additions & 3 deletions catt/cli.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
import click
import random
import os
import random
import socket
import time
try:
Expand All @@ -10,7 +9,9 @@
import configparser
from threading import Thread

from .controllers import get_stream_info, get_chromecast, CastController, Cache
import click

from .controllers import Cache, CastController, get_chromecast, get_stream_info
from .http_server import serve_file


Expand Down
12 changes: 7 additions & 5 deletions catt/controllers.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import json
import os
import time
import youtube_dl
import pychromecast
import shutil
import tempfile
import json
from click import echo, ClickException
import time

from click import ClickException, echo

import pychromecast
import youtube_dl # noqa, looks like flake8-tidy-imports has a bug here.


def get_stream_info(video_url):
Expand Down
4 changes: 2 additions & 2 deletions catt/http_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

def serve_file(filename, address="", port=45114):
class FileHandler(BaseHTTPRequestHandler):
def do_GET(self):
def do_GET(self): # noqa
try:
f = open(filename, "rb")
st = os.fstat(f.fileno())
Expand All @@ -35,7 +35,7 @@ def do_GET(self):
if not data:
break
self.wfile.write(data)
except:
except: # noqa
traceback.print_exc()
f.close()

Expand Down
5 changes: 4 additions & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
wheel==0.23.0
watchdog==0.8.3
flake8==2.4.1
flake8
flake8-import-order
flake8-tidy-imports
pep8-naming
tox==2.1.1
coverage==4.0
Sphinx==1.3.1

0 comments on commit c823c11

Please sign in to comment.