Skip to content

Commit 947a8aa

Browse files
author
ddigges
committed
Remove code smell
1 parent 11d7af8 commit 947a8aa

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

Config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from ConfigParser import SafeConfigParser
66

77

8-
class Config:
8+
class Config(object):
99

1010
def __init__(self, propertyFileName):
1111
self.parser = SafeConfigParser()

contributors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ def getContributorList(ownerLoginName, repoName):
3030
password = config.getProperty('DEFAULT', 'password')
3131
response = requests.get(url, auth=(username, password))
3232
return _getContributorList(response)
33-
except requests.exceptions.RequestException as e:
33+
except requests.exceptions.RequestException:
3434
return []

main.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from flask import Flask
55
app = Flask(__name__)
66

7-
from webHook import *
87
# Note: We don't need to call run() since our application is embedded within
98
# the App Engine WSGI application server.
109

webHook.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import logging
1010
import os
1111
import requests
12-
import sys
1312

1413

1514

0 commit comments

Comments
 (0)