changeset 4516:96d8a56d4ef9

Removed trailing whitespace and tabs from python files
author Thomas Arendsen Hein <thomas@intevation.de>
date Wed, 06 Jun 2007 20:22:52 +0200
parents 86a66cce9566
children 5371a213b0f4
files hgext/convert/__init__.py hgext/graphlog.py hgext/purge.py hgext/transplant.py mercurial/commands.py mercurial/hgweb/server.py mercurial/httprepo.py mercurial/localrepo.py mercurial/patch.py mercurial/util.py tests/test-simplemerge.py tests/test-trusted.py
diffstat 12 files changed, 33 insertions(+), 33 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/convert/__init__.py	Wed Jun 06 20:17:03 2007 +0200
+++ b/hgext/convert/__init__.py	Wed Jun 06 20:22:52 2007 +0200
@@ -50,7 +50,7 @@
 
     def getchanges(self, version):
         """Return sorted list of (filename, id) tuples for all files changed in rev.
-        
+
         id just tells us which revision to return in getfile(), e.g. in
         git it's an object hash."""
         raise NotImplementedError()
@@ -252,7 +252,7 @@
                 user, host, root = m.group(1), m.group(2), m.group(3)
 
         if conntype != "pserver":
-            if conntype == "rsh": 
+            if conntype == "rsh":
                 rsh = os.environ.get("CVS_RSH" or "rsh")
                 if user:
                     cmd = [rsh, '-l', user, host] + cmd
--- a/hgext/graphlog.py	Wed Jun 06 20:17:03 2007 +0200
+++ b/hgext/graphlog.py	Wed Jun 06 20:22:52 2007 +0200
@@ -1,7 +1,7 @@
 # ASCII graph log extension for Mercurial
 #
 # Copyright 2007 Joel Rosdahl <joel@rosdahl.net>
-# 
+#
 # This software may be used and distributed according to the terms of
 # the GNU General Public License, incorporated herein by reference.
 
--- a/hgext/purge.py	Wed Jun 06 20:17:03 2007 +0200
+++ b/hgext/purge.py	Wed Jun 06 20:22:52 2007 +0200
@@ -83,12 +83,12 @@
     dirstate.walk() can yield filenames different from the ones
     stored in the dirstate. This already confuses the status and
     add commands, but with purge this may cause data loss.
-    
+
     To prevent this, _check_missing will abort if there are missing
-    files. The force option will let the user skip the check if he 
+    files. The force option will let the user skip the check if he
     knows it is safe.
-    
-    Even with the force option this function will check if any of the 
+
+    Even with the force option this function will check if any of the
     missing files is still available in the working dir: if so there
     may be some problem with the underlying filesystem, so it
     aborts unconditionally."""
--- a/hgext/transplant.py	Wed Jun 06 20:17:03 2007 +0200
+++ b/hgext/transplant.py	Wed Jun 06 20:22:52 2007 +0200
@@ -336,7 +336,7 @@
                 inmsg = True
                 message.append(line)
         return (node, user, date, '\n'.join(message), parents)
-            
+
     def log(self, user, date, message, p1, p2, merge=False):
         '''journal changelog metadata for later recover'''
 
--- a/mercurial/commands.py	Wed Jun 06 20:17:03 2007 +0200
+++ b/mercurial/commands.py	Wed Jun 06 20:22:52 2007 +0200
@@ -901,7 +901,7 @@
         fa = writetemp(a)
         d = mdiff.unidiff(a, None, b, None, os.path.basename(fa))
         fd = writetemp(d)
-        
+
         files = {}
         try:
             patch.patch(fd, ui, cwd=os.path.dirname(fa), files=files)
@@ -909,7 +909,7 @@
             ui.write(_(" patch call failed:\n"))
             ui.write(" " + str(e) + "\n")
             problems += 1
-        else:            
+        else:
             if list(files) != [os.path.basename(fa)]:
                 ui.write(_(" unexpected patch output!"))
                 ui.write(_(" (you may have an incompatible version of patch)\n"))
@@ -919,7 +919,7 @@
                 ui.write(_(" patch test failed!"))
                 ui.write(_(" (you may have an incompatible version of patch)\n"))
                 problems += 1
-                
+
         os.unlink(fa)
         os.unlink(fd)
 
@@ -2548,7 +2548,7 @@
     hexfunc = ui.debugflag and hex or short
     for t, n in l:
         try:
-	    hn = hexfunc(n)
+            hn = hexfunc(n)
             r = "%5d:%s" % (repo.changelog.rev(n), hexfunc(n))
         except revlog.LookupError:
             r = "    ?:%s" % hn
--- a/mercurial/hgweb/server.py	Wed Jun 06 20:17:03 2007 +0200
+++ b/mercurial/hgweb/server.py	Wed Jun 06 20:22:52 2007 +0200
@@ -195,11 +195,11 @@
                 pass
 
     class MercurialHTTPServer(object, _mixin, BaseHTTPServer.HTTPServer):
-        
+
         # SO_REUSEADDR has broken semantics on windows
         if os.name == 'nt':
             allow_reuse_address = 0
-    
+
         def __init__(self, *args, **kargs):
             BaseHTTPServer.HTTPServer.__init__(self, *args, **kargs)
             self.accesslog = accesslog
--- a/mercurial/httprepo.py	Wed Jun 06 20:17:03 2007 +0200
+++ b/mercurial/httprepo.py	Wed Jun 06 20:22:52 2007 +0200
@@ -208,7 +208,7 @@
         # 1.0 here is the _protocol_ version
         opener.addheaders = [('User-agent', 'mercurial/proto-1.0')]
         urllib2.install_opener(opener)
-    
+
     def __del__(self):
         if self.handler:
             self.handler.close_all()
--- a/mercurial/localrepo.py	Wed Jun 06 20:17:03 2007 +0200
+++ b/mercurial/localrepo.py	Wed Jun 06 20:22:52 2007 +0200
@@ -651,8 +651,8 @@
         cp = self.dirstate.copied(fn)
         if cp:
             # Mark the new revision of this file as a copy of another
-            # file.  This copy data will effectively act as a parent 
-            # of this new revision.  If this is a merge, the first 
+            # file.  This copy data will effectively act as a parent
+            # of this new revision.  If this is a merge, the first
             # parent will be the nullid (meaning "look up the copy data")
             # and the second one will be the other parent.  For example:
             #
--- a/mercurial/patch.py	Wed Jun 06 20:17:03 2007 +0200
+++ b/mercurial/patch.py	Wed Jun 06 20:22:52 2007 +0200
@@ -305,7 +305,7 @@
             raise util.Abort(_('no patch command found in hgrc or PATH'))
         if util.needbinarypatch():
             args.append('--binary')
-                                    
+
         if cwd:
             args.append('-d %s' % util.shellquote(cwd))
         fp = os.popen('%s %s -p%d < %s' % (patcher, ' '.join(args), strip,
--- a/mercurial/util.py	Wed Jun 06 20:17:03 2007 +0200
+++ b/mercurial/util.py	Wed Jun 06 20:22:52 2007 +0200
@@ -823,7 +823,7 @@
                 if inst.errno != 0: raise
                 self.close()
                 raise IOError(errno.EPIPE, 'Broken pipe')
-                
+
         def flush(self):
             try:
                 return self.fp.flush()
@@ -912,7 +912,7 @@
     # username and groupname functions above, too.
     def isowner(fp, st=None):
         return True
-        
+
     def find_in_path(name, path, default=None):
         '''find name in search path. path can be string (will be split
         with os.pathsep), or iterable thing that returns strings.  if name
@@ -920,17 +920,17 @@
         using cmd.exe rules, using PATHEXT.'''
         if isinstance(path, str):
             path = path.split(os.pathsep)
-            
+
         pathext = os.environ.get('PATHEXT', '.COM;.EXE;.BAT;.CMD')
         pathext = pathext.lower().split(os.pathsep)
         isexec = os.path.splitext(name)[1].lower() in pathext
-        
+
         for p in path:
             p_name = os.path.join(p, name)
-            
+
             if isexec and os.path.exists(p_name):
                 return p_name
-            
+
             for ext in pathext:
                 p_name_ext = p_name + ext
                 if os.path.exists(p_name_ext):
@@ -1074,7 +1074,7 @@
         if st is None:
             st = fstat(fp)
         return st.st_uid == os.getuid()
-        
+
     def find_in_path(name, path, default=None):
         '''find name in search path. path can be string (will be split
         with os.pathsep), or iterable thing that returns strings.  if name
--- a/tests/test-simplemerge.py	Wed Jun 06 20:17:03 2007 +0200
+++ b/tests/test-simplemerge.py	Wed Jun 06 20:22:52 2007 +0200
@@ -38,7 +38,7 @@
 # common base
 TZU = split_lines("""     The Nameless is the origin of Heaven and Earth;
      The named is the mother of all things.
-     
+
      Therefore let there always be non-being,
        so we may see their subtlety,
      And let there always be being,
@@ -69,7 +69,7 @@
      The name that can be named is not the eternal name.
      The Nameless is the origin of Heaven and Earth;
      The named is the mother of all things.
-     
+
      Therefore let there always be non-being,
        so we may see their subtlety,
      And let there always be being,
@@ -77,7 +77,7 @@
      The two are the same,
      But after they are produced,
        they have different names.
-     
+
        -- The Way of Lao-Tzu, tr. Wing-tsit Chan
 
 """)
@@ -95,7 +95,7 @@
        they have different names.
 <<<<<<< LAO
 =======
-     
+
        -- The Way of Lao-Tzu, tr. Wing-tsit Chan
 
 >>>>>>> TAO
@@ -144,7 +144,7 @@
         self.assertEquals(list(m3.merge_groups()),
                           [('a', ['aaa', 'bbb']),
                            ('unchanged', ['zz'])])
-        
+
     def test_null_insert(self):
         m3 = Merge3([],
                     ['aaa', 'bbb'],
@@ -235,7 +235,7 @@
                             mid_marker='--',
                             end_marker='>>')
         self.assertEquals(''.join(ml), 'aaa\n222\nbbb\n')
-        
+
 
     def test_insert_clash(self):
         """Both try to insert lines in the same place."""
@@ -370,7 +370,7 @@
         this_text = ("a\n"*10+"b\n" * 10).splitlines(True)
         other_text = ("a\n"*10+"c\n"+"b\n" * 8 + "c\n").splitlines(True)
         m3 = Merge3(base_text, other_text, this_text)
-        m_lines = m3.merge_lines('OTHER', 'THIS', reprocess=True, 
+        m_lines = m3.merge_lines('OTHER', 'THIS', reprocess=True,
                                  base_marker='|||||||')
         self.assertRaises(CantReprocessAndShowBase, list, m_lines)
 
--- a/tests/test-trusted.py	Wed Jun 06 20:17:03 2007 +0200
+++ b/tests/test-trusted.py	Wed Jun 06 20:22:52 2007 +0200
@@ -155,7 +155,7 @@
 print u2.config('foobar', 'baz', untrusted=True)
 print u2.config('paths', 'interpolated', untrusted=True)
 
-print 
+print
 print "# error handling"
 
 def assertraises(f, exc=util.Abort):