Hi,

This patch fix an indentation error in py-xdg:

from xdg.DesktopEntry import DesktopEntry
File "/usr/local/lib/python2.5/site-packages/xdg/DesktopEntry.py", line 184
self.errors.append("Group may either have OnlyShowIn or NotShowIn, but not 
both")
^
IndentationError: expected an indented block


Ciao,
David


Index: patch-xdg_DesktopEntry_py
===================================================================
RCS file: patch-xdg_DesktopEntry_py
diff -N patch-xdg_DesktopEntry_py
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patch-xdg_DesktopEntry_py   4 Feb 2009 14:25:27 -0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- xdg/DesktopEntry.py.orig   Wed Feb  4 15:16:59 2009
++++ xdg/DesktopEntry.py        Wed Feb  4 15:18:18 2009
+@@ -181,7 +181,7 @@ class DesktopEntry(IniFile):
+         else:
+             #OnlyShowIn and NotShowIn
+             if self.content[group].has_key("OnlyShowIn") and 
self.content[group].has_key("NotShowIn"):
+-            self.errors.append("Group may either have OnlyShowIn or 
NotShowIn, but not both")
++                self.errors.append("Group may either have OnlyShowIn or 
NotShowIn, but not both")
+ 
+     def checkKey(self, key, value, group):
+         # standard keys     

Reply via email to