PyLint style fixes

This commit is contained in:
Paulus Schoutsen 2014-06-05 23:12:00 -07:00
parent b09fe4a3a7
commit 6e7887db23
2 changed files with 2 additions and 1 deletions

View File

@ -34,6 +34,7 @@ METHOD_GET = "get"
METHOD_POST = "post"
# pylint: disable=no-init, invalid-name
class APIStatus(enum.Enum):
""" Represents API status. """
@ -58,6 +59,7 @@ class API(object):
self.status = None
def validate_api(self, force_validate=False):
""" Tests if we can communicate with the API. """
if self.status is None or force_validate:
self.status = validate_api(self)

View File

@ -10,7 +10,6 @@ import datetime
import re
import enum
import socket
import os
RE_SANITIZE_FILENAME = re.compile(r'(~|\.\.|/|\\)')
RE_SLUGIFY = re.compile(r'[^A-Za-z0-9_]+')