Skip to content

Commit

Permalink
pep8 applied.
Browse files Browse the repository at this point in the history
  • Loading branch information
idlesign committed Mar 11, 2013
1 parent 83ef6e4 commit cf3ae84
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os
from setuptools import setup, find_packages
from setuptools import setup
from updatorr import VERSION


Expand Down Expand Up @@ -35,8 +35,8 @@
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
'Programming Language :: Python'
],

packages=[__plugin_name__.lower()],
package_data=__pkg_data__,
Expand All @@ -48,5 +48,5 @@
%s = %s:GtkUIPlugin
[deluge.plugin.web]
%s = %s:WebUIPlugin
''' % ((__plugin_name__, __plugin_name__.lower())*3)
''' % ((__plugin_name__, __plugin_name__.lower()) * 3)
)
11 changes: 4 additions & 7 deletions updatorr/webui.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
import os
import logging
import pkg_resources
from deluge.common import fspeed
from deluge.ui.client import client
from deluge.plugins.pluginbase import WebPluginBase
from deluge import component

log = logging.getLogger(__name__)


def get_resource(filename):
return pkg_resources.resource_filename("updatorr",
os.path.join("data", filename))
return pkg_resources.resource_filename('updatorr', os.path.join('data', filename))

class WebUI(WebPluginBase):

scripts = [get_resource("updatorr.js")]
class WebUI(WebPluginBase):
scripts = [get_resource('updatorr.js')]
debug_scripts = scripts

0 comments on commit cf3ae84

Please sign in to comment.