From 912f2ec8d2cf9dd5403275b976e0ee9871e0978e Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Sat, 4 Oct 2003 15:01:48 +0000 Subject: [PATCH] Style improvements. git-svn-id: https://rox.svn.sourceforge.net/svnroot/rox/trunk/ROX-Lib2@3113 66de3db3-b00d-0410-b41b-f4738ad19bea --- AppInfo.xml | 2 +- Help/Changes | 4 ++-- python/rox/InfoWin.py | 2 -- python/rox/__init__.py | 2 +- python/rox/mime.py | 14 +------------- 5 files changed, 5 insertions(+), 19 deletions(-) diff --git a/AppInfo.xml b/AppInfo.xml index dd0a04d..4dbc709 100644 --- a/AppInfo.xml +++ b/AppInfo.xml @@ -5,7 +5,7 @@ Shared library for ROX Thomas Leonard - 1.9.10 PREVIEW + 1.9.10 (04-Oct-2003) GNU General Public License http://rox.sourceforge.net diff --git a/Help/Changes b/Help/Changes index ddc6dc7..42832da 100644 --- a/Help/Changes +++ b/Help/Changes @@ -18,8 +18,8 @@ New bug() function to quickly bring up a debugging prompt. 15-Sep-2003 ~~~~~~~~~~~ -The glob patterns in mime.py are now sorted longest first. Fix for setting -icon in the old way when there was no icon (Stephen Watson) +The glob patterns in mime.py are now sorted longest first. Fix for setting +icon in the old way when there was no icon (Stephen Watson). 25-Aug-2003 ~~~~~~~~~~~ diff --git a/python/rox/InfoWin.py b/python/rox/InfoWin.py index 838e7df..f6597b0 100644 --- a/python/rox/InfoWin.py +++ b/python/rox/InfoWin.py @@ -1,5 +1,3 @@ -# $Id$ - """Provide a standard window for displaying application information.""" import os diff --git a/python/rox/__init__.py b/python/rox/__init__.py index 892eda4..09fa699 100644 --- a/python/rox/__init__.py +++ b/python/rox/__init__.py @@ -158,7 +158,7 @@ def report_exception(): debug.show_exception(type, value, tb) _icon_path = os.path.join(app_dir, '.DirIcon') -_window_icon=None +_window_icon = None if os.path.exists(_icon_path): try: g.window_set_default_icon_list(g.gdk.pixbuf_new_from_file(_icon_path)) diff --git a/python/rox/mime.py b/python/rox/mime.py index 6be8875..27902f5 100644 --- a/python/rox/mime.py +++ b/python/rox/mime.py @@ -1,6 +1,3 @@ -# Access to shared MIME database -# $Id$ - """This module provides access to the shared MIME database. types is a dictionary of all known MIME types, indexed by the type name, e.g. @@ -149,17 +146,8 @@ def _import_glob_file(dir): for dir in mimedirs: _import_glob_file(dir) -def longest_first(a, b): - stra=a[0] - strb=b[0] - if len(stra)>len(strb): - return -1 - elif len(stra)