Make Flake8 go Green
This commit is contained in:
parent
50cd0a3885
commit
1004197193
19
bot.py
19
bot.py
@ -1,5 +1,20 @@
|
||||
#! /usr/bin/env python
|
||||
|
||||
# All Rights Reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
# not use this file except in compliance with the License. You may obtain
|
||||
# a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
# The configuration file should look like:
|
||||
"""
|
||||
[ircbot]
|
||||
@ -26,12 +41,12 @@ openstack-qa:
|
||||
import ConfigParser
|
||||
import daemon
|
||||
import irc.bot
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
import threading
|
||||
import time
|
||||
import yaml
|
||||
import logging
|
||||
|
||||
try:
|
||||
import daemon.pidlockfile
|
||||
@ -117,8 +132,8 @@ class RecheckWatch(threading.Thread):
|
||||
|
||||
def run(self):
|
||||
# Import here because it needs to happen after daemonization
|
||||
from elasticRecheck import Stream
|
||||
from elasticRecheck import Classifier
|
||||
from elasticRecheck import Stream
|
||||
classifier = Classifier(self.queries)
|
||||
stream = Stream(self.username, self.host, self.key)
|
||||
while True:
|
||||
|
@ -1,3 +1,17 @@
|
||||
# All Rights Reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
# not use this file except in compliance with the License. You may obtain
|
||||
# a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import ConfigParser
|
||||
import gerritlib
|
||||
import testtools
|
||||
|
Loading…
x
Reference in New Issue
Block a user