Permalink
Browse files

fixed more pylint and pep8 warnings

  • Loading branch information...
1 parent 30975bc commit 465fa4c1242acfba4891b9ee313594fe824f3ebf @trey0 trey0 committed Sep 20, 2011
Showing with 19 additions and 17 deletions.
  1. +2 −1 doc_src/conf.py
  2. +1 −1 example/manage.py
  3. +2 −1 example/settings.py
  4. +2 −3 example/urls.py
  5. +1 −1 geocamCore/admin.py
  6. +11 −10 setup.py
View
@@ -17,7 +17,8 @@
# All configuration values have a default; values that are commented out
# serve to show the default.
-import sys, os
+import sys
+import os
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
View
@@ -7,7 +7,7 @@
from django.core.management import execute_manager
try:
- import settings # Assumed to be in the same directory.
+ import settings # Assumed to be in the same directory.
except ImportError:
import sys
sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__)
View
@@ -8,7 +8,8 @@
DEBUG = True
TEMPLATE_DEBUG = DEBUG
-import os, sys
+import os
+import sys
APP = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
PROJ_ROOT = os.path.abspath(os.path.dirname(__file__))
sys.path.append(APP)
View
@@ -15,13 +15,13 @@
# Example:
# (r'^example/', include('example.foo.urls')),
- # Uncomment the admin/doc line below and add 'django.contrib.admindocs'
+ # Uncomment the admin/doc line below and add 'django.contrib.admindocs'
# to INSTALLED_APPS to enable admin documentation:
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
(r'^admin/', include(admin.site.urls)),
-
+
)
urlpatterns = urlpatterns + patterns('',
@@ -30,4 +30,3 @@
# (r'^data/(?P<path>.*)$', 'django.views.static.serve',
# {'document_root': settings.DATA_ROOT}),
)
-
View
@@ -5,7 +5,7 @@
# __END_LICENSE__
# tell pylint wildcard import is ok
-# pylint: disable-msg=W0401
+# pylint: disable=W0401
from django.contrib import admin
View
@@ -7,6 +7,7 @@
import os
from setuptools import setup, find_packages
+
def read_file(filename):
"""Read a file into a string"""
path = os.path.abspath(os.path.dirname(__file__))
@@ -20,17 +21,17 @@ def read_file(filename):
DESC = " ".join(__import__('geocamCore').__doc__.splitlines()).strip()
setup(
- name = "geocamCoreWeb",
- version = __import__('geocamCore').get_version().replace(' ', '-'),
- url = '',
- author = 'Trey Smith',
- author_email = '',
- description = DESC,
- long_description = read_file('README'),
- packages = find_packages(),
- include_package_data = True,
+ name="geocamCoreWeb",
+ version=__import__('geocamCore').get_version().replace(' ', '-'),
+ url='',
+ author='Trey Smith',
+ author_email='',
+ description=DESC,
+ long_description=read_file('README'),
+ packages=find_packages(),
+ include_package_data=True,
install_requires=read_file('requirements.txt'),
- classifiers = [
+ classifiers=[
'License :: OSI Approved :: NASA Open Source Agreement',
'Framework :: Django',
],

0 comments on commit 465fa4c

Please sign in to comment.