Re: [sugar] [PATCH] services/presence/server_plugin: reorder	imports On Thu, 2007-05-24 at 12:47 +0100, Simon McVittie wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> - ---
>  services/presence/server_plugin.py |   21 ++++++++++++---------
>  1 files changed, 12 insertions(+), 9 deletions(-)

Sure

> diff --git a/services/presence/server_plugin.py b/services/presence/server_plugin.py
> index 486bec4..cfa1819 100644
> - --- a/services/presence/server_plugin.py
> +++ b/services/presence/server_plugin.py
> @@ -16,23 +16,20 @@
>  # along with this program; if not, write to the Free Software
>  # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
>  
> - -import gobject
> - -import dbus
> - -from sugar import util
> - -import gtk
> - -from buddyiconcache import BuddyIconCache
> +# Standard library
>  import logging
>  import os
> - -
> +import sys
>  try:
>      # Python >= 2.5
>      from hashlib import md5
>  except ImportError:
>      from md5 import new as md5
>  
> - -import sys
> - -import psutils
> - -
> +# Other libraries
> +import dbus
> +import gobject
> +import gtk
>  from telepathy.client import (ConnectionManager, ManagerRegistry, Connection,
>      Channel)
>  from telepathy.interfaces import (CONN_MGR_INTERFACE, CONN_INTERFACE,
> @@ -45,6 +42,12 @@ from telepathy.constants import (HANDLE_TYPE_CONTACT,
>      CONNECTION_STATUS_CONNECTING,
>      CONNECTION_STATUS_REASON_AUTHENTICATION_FAILED,
>      PROPERTY_FLAG_WRITE)
> +from sugar import util
> +
> +# Presence Service local modules
> +from buddyiconcache import BuddyIconCache
> +import psutils
> +
>  
>  CONN_INTERFACE_BUDDY_INFO = 'org.laptop.Telepathy.BuddyInfo'
>  CONN_INTERFACE_ACTIVITY_PROPERTIES = 'org.laptop.Telepathy.ActivityProperties'
> - -- 
> 1.5.2-rc3.GIT
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: OpenPGP key: http://www.pseudorandom.co.uk/2003/contact/ or pgp.net
> 
> iD8DBQFGVXtXWSc8zVUw7HYRAql3AJ9xSaepLA5XU73/apvOjvN08L0JewCgpZAO
> MuhhVOtKVT5/7AZLvskKaPY=
> =EKTv
> -----END PGP SIGNATURE-----
> _______________________________________________
> Sugar mailing list
> Sugar@laptop.org
> http://mailman.laptop.org/mailman/listinfo/sugar

_______________________________________________
Sugar mailing list
Sugar@laptop.org
http://mailman.laptop.org/mailman/listinfo/sugar

