changeset 1395:249b7900fe28

fix some pep8 issues, remove the fixed files from pep8 checker's exlusion list
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 24 Jun 2012 14:23:46 +0200
parents d568defb6845
children 86e998d808e7
files contrib/wsgi/proxy.py setup.cfg setup.py wikiconfig.py
diffstat 4 files changed, 7 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/wsgi/proxy.py	Sun Jun 24 14:13:01 2012 +0200
+++ b/contrib/wsgi/proxy.py	Sun Jun 24 14:23:46 2012 +0200
@@ -1,6 +1,6 @@
 """
     WSGI Middleware for running WSGI apps behind proxies.
-    
+
     Analyzes HTTP-X-Forwarded-For header and uses the address our outermost
     trusted proxy is seeing as REMOTE_ADDR.
 
--- a/setup.cfg	Sun Jun 24 14:13:01 2012 +0200
+++ b/setup.cfg	Sun Jun 24 14:23:46 2012 +0200
@@ -52,10 +52,7 @@
  *.py E501  # maximum line length (default 79 chars)
  *.py W391  # trailing blank line(s) at EOF.
  upload.py ALL  # 3rd party (and not in the repo): rietveld upload tool
- setup.py ALL  # TODO
- wikiconfig.py ALL  # TODO
  wikiconfig_*.py ALL  # local stuff, not in the repo
- contrib/wsgi/proxy.py ALL  # TODO
  docs/conf.py ALL  # sphinx stuff, automatically generated, don't check this
  MoinMoin/util/md5crypt.py ALL  # 3rd party stuff, don't check this
 
--- a/setup.py	Sun Jun 24 14:13:01 2012 +0200
+++ b/setup.py	Sun Jun 24 14:23:46 2012 +0200
@@ -72,7 +72,7 @@
                  },
     include_package_data=True,
     zip_safe=False,
-    dependency_links = [
+    dependency_links=[
         #'https://github.com/mitsuhiko/werkzeug/tarball/master#egg=Werkzeug-0.7dev',
         'https://bitbucket.org/thomaswaldmann/whoosh/get/2.4x.tar.gz#egg=Whoosh-2.4.99dev',
         # fixed flask-themes, 0.1.3 does not work for flask 0.8.x, thus we use a faked 0.1.3.1:
@@ -108,7 +108,7 @@
         'XStatic-multiDownload>=20110717.1',
     ],
     # optional features and their list of requirements
-    extras_require = {
+    extras_require={
         #'featurename': ["req1", "req2", ],
         'pil': ["PIL"], # used by image get for scaling/rotating/etc.
                         # PIL is a binary dependency and some features of it
@@ -118,12 +118,12 @@
         'openid': ["python-openid>=2.2.4"], # used by openid rp auth
         'sqla': ["sqlalchemy>=0.7.1"], # used by sqla store
     },
-    entry_points = dict(
-        console_scripts = ['moin = MoinMoin.script:main'],
+    entry_points=dict(
+        console_scripts=['moin = MoinMoin.script:main'],
     ),
 
     # stuff for babel:
-    message_extractors = {
+    message_extractors={
         '': [
             ('MoinMoin/templates/**.html', 'jinja2', None),
             ('MoinMoin/apps/**/templates/**.html', 'jinja2', None),
--- a/wikiconfig.py	Sun Jun 24 14:13:01 2012 +0200
+++ b/wikiconfig.py	Sun Jun 24 14:23:46 2012 +0200
@@ -57,7 +57,7 @@
 
     # setup static files' serving:
     serve_files = dict(
-        docs = os.path.join(wikiconfig_dir, 'docs', '_build', 'html'),  # html docs made by sphinx
+        docs=os.path.join(wikiconfig_dir, 'docs', '_build', 'html'),  # html docs made by sphinx
     )
     # see https://bitbucket.org/thomaswaldmann/xstatic for infos about xstatic:
     from xstatic.main import XStatic