[xiph-cvs] cvs commit: positron/positron config.py

Stan Seibert volsung at xiph.org
Sat Sep 6 16:12:28 PDT 2003



volsung     03/09/06 19:12:28

  Modified:    positron config.py
  Log:
  Properly cut empty lines from ~/.positron/deleted.  Closes bug 408.

Revision  Changes    Path
1.4       +1 -1      positron/positron/config.py

Index: config.py
===================================================================
RCS file: /usr/local/cvsroot/positron/positron/config.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- config.py	1 Jul 2003 01:21:29 -0000	1.3
+++ config.py	6 Sep 2003 23:12:28 -0000	1.4
@@ -306,7 +306,7 @@
         f.close()
 
         # Eliminate null entries and trim trailing newlines
-        return [trim_newline(item) for item in l if item != "" or item == "\n"]
+        return [trim_newline(item) for item in l if item != "" and item != "\n"]
 
     def _add_item(self, filename, item):
         f = file(filename, "a")

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list