Permalink
Browse files

removed trailing whitespace, CRLF to LF

  • Loading branch information...
1 parent 881850e commit 29fb99381ee27ee8ba791cbf64e85e564501d45e @knoguchi knoguchi committed Aug 23, 2010
@@ -4,5 +4,5 @@
(r'^$', 'djangoproject.views.index'),
(r'^download', 'djangoproject.views.download'),
(r'^ezpdf_sample', 'djangoproject.views.ezpdf_sample'),
-
+
)
@@ -1,52 +1,52 @@
-# -*- coding: utf-8 -*-
-"""This module contains functions called from console script entry points."""
-
-import os
-import sys
-
-from os.path import dirname, exists, join
-
-import pkg_resources
-pkg_resources.require("TurboGears")
-
-import turbogears
-import cherrypy
-
-cherrypy.lowercase_api = True
-
-class ConfigurationError(Exception):
- pass
-
-def start():
- """Start the CherryPy application server."""
-
- setupdir = dirname(dirname(__file__))
- curdir = os.getcwd()
-
- # First look on the command line for a desired config file,
- # if it's not on the command line, then look for 'setup.py'
- # in the current directory. If there, load configuration
- # from a file called 'dev.cfg'. If it's not there, the project
- # is probably installed and we'll look first for a file called
- # 'prod.cfg' in the current directory and then for a default
- # config file called 'default.cfg' packaged in the egg.
- if len(sys.argv) > 1:
- configfile = sys.argv[1]
- elif exists(join(setupdir, "setup.py")):
- configfile = join(setupdir, "dev.cfg")
- elif exists(join(curdir, "prod.cfg")):
- configfile = join(curdir, "prod.cfg")
- else:
- try:
- configfile = pkg_resources.resource_filename(
- pkg_resources.Requirement.parse("tgpisa"),
- "config/default.cfg")
- except pkg_resources.DistributionNotFound:
- raise ConfigurationError("Could not find default configuration.")
-
- turbogears.update_config(configfile=configfile,
- modulename="tgpisa.config")
-
- from tgpisa.controllers import Root
-
- turbogears.start_server(Root())
+# -*- coding: utf-8 -*-
+"""This module contains functions called from console script entry points."""
+
+import os
+import sys
+
+from os.path import dirname, exists, join
+
+import pkg_resources
+pkg_resources.require("TurboGears")
+
+import turbogears
+import cherrypy
+
+cherrypy.lowercase_api = True
+
+class ConfigurationError(Exception):
+ pass
+
+def start():
+ """Start the CherryPy application server."""
+
+ setupdir = dirname(dirname(__file__))
+ curdir = os.getcwd()
+
+ # First look on the command line for a desired config file,
+ # if it's not on the command line, then look for 'setup.py'
+ # in the current directory. If there, load configuration
+ # from a file called 'dev.cfg'. If it's not there, the project
+ # is probably installed and we'll look first for a file called
+ # 'prod.cfg' in the current directory and then for a default
+ # config file called 'default.cfg' packaged in the egg.
+ if len(sys.argv) > 1:
+ configfile = sys.argv[1]
+ elif exists(join(setupdir, "setup.py")):
+ configfile = join(setupdir, "dev.cfg")
+ elif exists(join(curdir, "prod.cfg")):
+ configfile = join(curdir, "prod.cfg")
+ else:
+ try:
+ configfile = pkg_resources.resource_filename(
+ pkg_resources.Requirement.parse("tgpisa"),
+ "config/default.cfg")
+ except pkg_resources.DistributionNotFound:
+ raise ConfigurationError("Could not find default configuration.")
+
+ turbogears.update_config(configfile=configfile,
+ modulename="tgpisa.config")
+
+ from tgpisa.controllers import Root
+
+ turbogears.start_server(Root())
@@ -6,7 +6,7 @@
# 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
@@ -19,7 +19,7 @@
# 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
@@ -40,13 +40,13 @@
import sx.pisa3.pisa_wsgi as pisa_wsgi
def SimpleApp(environ, start_response):
-
+
# That's the magic!
#
# Set the environment variable "pisa.topdf" to the filename
- # you would like to have for the resulting PDF
+ # you would like to have for the resulting PDF
environ["pisa.topdf"] = "index.pdf"
-
+
# Simple Hello World example
start_response(
'200 OK', [
@@ -59,12 +59,12 @@ def SimpleApp(environ, start_response):
HOST = ''
PORT = 8080
logging.basicConfig(level=logging.DEBUG)
-
+
app = SimpleApp
-
- # Add PISA WSGI Middleware
+
+ # Add PISA WSGI Middleware
app = pisa_wsgi.PisaMiddleware(app)
-
+
httpd = make_server(HOST, PORT, app)
print "Serving HTTP on port %d..." % PORT
httpd.serve_forever()
View
@@ -88,7 +88,7 @@ def do_download():
try:
import pkg_resources
except ImportError:
- return do_download()
+ return do_download()
try:
pkg_resources.require("setuptools>="+version); return
except pkg_resources.VersionConflict, e:
View
@@ -1,25 +1,25 @@
-# -*- coding: ISO-8859-1 -*-
-
-# Copyright 2010 Dirk Holtwick, holtwick.it
-#
-# 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.
-
-__version__ = "$Revision: 128 $"
-__author__ = "$Author: holtwick $"
-__date__ = "$Date: 2008-01-10 21:26:42 +0100 (Do, 10 Jan 2008) $"
-__svnid__ = "$Id: __init__.py 128 2008-01-10 20:26:42Z holtwick $"
-
-# Also look in other packages with the same name
-
-from pkgutil import extend_path
-__path__ = extend_path(__path__, __name__)
+# -*- coding: ISO-8859-1 -*-
+
+# Copyright 2010 Dirk Holtwick, holtwick.it
+#
+# 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.
+
+__version__ = "$Revision: 128 $"
+__author__ = "$Author: holtwick $"
+__date__ = "$Date: 2008-01-10 21:26:42 +0100 (Do, 10 Jan 2008) $"
+__svnid__ = "$Id: __init__.py 128 2008-01-10 20:26:42Z holtwick $"
+
+# Also look in other packages with the same name
+
+from pkgutil import extend_path
+__path__ = extend_path(__path__, __name__)
View
@@ -5,7 +5,7 @@
# 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
View
@@ -1,24 +1,24 @@
-#!/usr/local/bin/python
-# -*- coding: ISO-8859-1 -*-
-
-# Copyright 2010 Dirk Holtwick, holtwick.it
-#
-# 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.
-
-__version__ = "$Revision: 221 $"
-__author__ = "$Author: holtwick $"
-__date__ = "$Date: 2008-05-31 18:56:27 +0200 (Sa, 31 Mai 2008) $"
-__svnid__ = "$Id: pisa.py 221 2008-05-31 16:56:27Z holtwick $"
-
-import ho.pisa as pisa
-pisa.command()
+#!/usr/local/bin/python
+# -*- coding: ISO-8859-1 -*-
+
+# Copyright 2010 Dirk Holtwick, holtwick.it
+#
+# 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.
+
+__version__ = "$Revision: 221 $"
+__author__ = "$Author: holtwick $"
+__date__ = "$Date: 2008-05-31 18:56:27 +0200 (Sa, 31 Mai 2008) $"
+__svnid__ = "$Id: pisa.py 221 2008-05-31 16:56:27Z holtwick $"
+
+import ho.pisa as pisa
+pisa.command()
View
@@ -6,7 +6,7 @@
# 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
View
@@ -5,7 +5,7 @@
# 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
View
@@ -5,7 +5,7 @@
# 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
View
@@ -1,25 +1,25 @@
-# -*- coding: ISO-8859-1 -*-
-
-# Copyright 2010 Dirk Holtwick, holtwick.it
-#
-# 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.
-
-__version__ = "$Revision: 128 $"
-__author__ = "$Author: holtwick $"
-__date__ = "$Date: 2008-01-10 21:26:42 +0100 (Do, 10 Jan 2008) $"
-__svnid__ = "$Id: __init__.py 128 2008-01-10 20:26:42Z holtwick $"
-
-# Also look in other packages with the same name
-
-from pkgutil import extend_path
-__path__ = extend_path(__path__, __name__)
+# -*- coding: ISO-8859-1 -*-
+
+# Copyright 2010 Dirk Holtwick, holtwick.it
+#
+# 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.
+
+__version__ = "$Revision: 128 $"
+__author__ = "$Author: holtwick $"
+__date__ = "$Date: 2008-01-10 21:26:42 +0100 (Do, 10 Jan 2008) $"
+__svnid__ = "$Id: __init__.py 128 2008-01-10 20:26:42Z holtwick $"
+
+# Also look in other packages with the same name
+
+from pkgutil import extend_path
+__path__ = extend_path(__path__, __name__)
Oops, something went wrong.

0 comments on commit 29fb993

Please sign in to comment.