changeset 2277:5638ffa2fb38

replace crlf in python src files by lf
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 02 Jul 2007 16:23:12 +0200
parents e56af6f9b2cc
children 9df10b5358b5
files MoinMoin/_tests/test_sourcecode.py MoinMoin/formatter/text_html.py MoinMoin/parser/text_diff.py wiki/config/mailimportconf.py
diffstat 4 files changed, 48 insertions(+), 51 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/_tests/test_sourcecode.py	Mon Jul 02 16:20:30 2007 +0200
+++ b/MoinMoin/_tests/test_sourcecode.py	Mon Jul 02 16:23:12 2007 +0200
@@ -13,9 +13,6 @@
 ROOT = str(moindir)
 
 EXCLUDE = [
-        '/wiki/config/mailimportconf.py',
-        '/MoinMoin/formatter/text_html.py',
-        '/MoinMoin/parser/text_diff.py',
     '/contrib/DesktopEdition/setup_py2exe.py', # has crlf
     '/MoinMoin/support', # 3rd party libs or non-broken stdlib stuff
     '/wiki/htdocs/applets/FCKeditor', # 3rd party GUI editor
--- a/MoinMoin/formatter/text_html.py	Mon Jul 02 16:20:30 2007 +0200
+++ b/MoinMoin/formatter/text_html.py	Mon Jul 02 16:23:12 2007 +0200
@@ -684,7 +684,7 @@
 
         # check whether attachment exists, possibly point to upload form
         if not exists:
-            linktext = _('Create new drawing "%(filename)s (opens in new window)"')
+            linktext = _('Create new drawing "%(filename)s (opens in new window)"')
             return wikiutil.link_tag(
                 self.request,
                 ('%s?action=AttachFile&rename=%s%s' %
--- a/MoinMoin/parser/text_diff.py	Mon Jul 02 16:20:30 2007 +0200
+++ b/MoinMoin/parser/text_diff.py	Mon Jul 02 16:23:12 2007 +0200
@@ -1,39 +1,39 @@
-# -*- coding: iso-8859-1 -*-
-"""
-    MoinMoin - Diff Parser - highlights diff tool output
-
-    @copyright: 2006 Emilio Lopes, inspired by previous work
-                done by Fabien Ninoles and Juergen Hermann
-    @license: GNU GPL, see COPYING for details.
-"""
-
-from MoinMoin.parser._ParserBase import ParserBase
-
-class Parser(ParserBase):
-    parsername = "ColorizedDiff"
-    extensions = ['.diff', '.patch', ]
-    Dependencies = []
-
-    def setupRules(self):
-        ParserBase.setupRules(self)
-
-        self.addRule("Comment", r'^(diff .*?)$')
-        self.addRule("Comment", r'^(\*\*\* .*?)$')
-        self.addRule("Comment", r'^(--- .*?)$')
-        self.addRule("Comment", r'^(\+\+\+ .*?)$')
-        self.addRule("Comment", r'^\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* *$')
-
-        self.addRule("DiffSeparator", r'^(@@ .*?)$')
-        self.addRule("DiffSeparator", r'^--- *$')
-
-        self.addRule("DiffAdded", r'^(\+.*?)$')
-        self.addRule("DiffRemoved", r'^(-.*?)$')
-        self.addRule("DiffAdded", r'^(>.*?)$')
-        self.addRule("DiffRemoved", r'^(<.*?)$')
-        self.addRule("DiffChanged", r'^(!.*?)$')
-
-        self.addRuleFormat("DiffAdded")
-        self.addRuleFormat("DiffRemoved")
-        self.addRuleFormat("DiffChanged")
-        self.addRuleFormat("DiffSeparator")
-
+# -*- coding: iso-8859-1 -*-
+"""
+    MoinMoin - Diff Parser - highlights diff tool output
+
+    @copyright: 2006 Emilio Lopes, inspired by previous work
+                done by Fabien Ninoles and Juergen Hermann
+    @license: GNU GPL, see COPYING for details.
+"""
+
+from MoinMoin.parser._ParserBase import ParserBase
+
+class Parser(ParserBase):
+    parsername = "ColorizedDiff"
+    extensions = ['.diff', '.patch', ]
+    Dependencies = []
+
+    def setupRules(self):
+        ParserBase.setupRules(self)
+
+        self.addRule("Comment", r'^(diff .*?)$')
+        self.addRule("Comment", r'^(\*\*\* .*?)$')
+        self.addRule("Comment", r'^(--- .*?)$')
+        self.addRule("Comment", r'^(\+\+\+ .*?)$')
+        self.addRule("Comment", r'^\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* *$')
+
+        self.addRule("DiffSeparator", r'^(@@ .*?)$')
+        self.addRule("DiffSeparator", r'^--- *$')
+
+        self.addRule("DiffAdded", r'^(\+.*?)$')
+        self.addRule("DiffRemoved", r'^(-.*?)$')
+        self.addRule("DiffAdded", r'^(>.*?)$')
+        self.addRule("DiffRemoved", r'^(<.*?)$')
+        self.addRule("DiffChanged", r'^(!.*?)$')
+
+        self.addRuleFormat("DiffAdded")
+        self.addRuleFormat("DiffRemoved")
+        self.addRuleFormat("DiffChanged")
+        self.addRuleFormat("DiffSeparator")
+
--- a/wiki/config/mailimportconf.py	Mon Jul 02 16:20:30 2007 +0200
+++ b/wiki/config/mailimportconf.py	Mon Jul 02 16:23:12 2007 +0200
@@ -1,8 +1,8 @@
-# This is the configuration file for the mail import client
-
-# This secret has to be known by the wiki server
-mail_import_secret = u"foo"
-
-# The target wiki URL 
-mail_import_url = u"http://localhost/?action=xmlrpc2"
-
+# This is the configuration file for the mail import client
+
+# This secret has to be known by the wiki server
+mail_import_secret = u"foo"
+
+# The target wiki URL 
+mail_import_url = u"http://localhost/?action=xmlrpc2"
+