[mousetrap/gnome3-wip: 6/240] Revert "Moving import."



commit 7c4b4d7117c3a3576255cce5d6480053cce65bc9
Author: Kevin Brown <kbrown rediker com>
Date:   Thu Apr 17 08:46:03 2014 -0400

    Revert "Moving import."
    
    This reverts commit bc9cdec34bd5f0469c7a2dc06293f24a226e15a6.
    
    Python `__future__` imports must be at the top of the file.

 src/mousetrap/main.py |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/mousetrap/main.py b/src/mousetrap/main.py
index 5579226..6d48ce9 100644
--- a/src/mousetrap/main.py
+++ b/src/mousetrap/main.py
@@ -1,3 +1,7 @@
+# This will for all imports to be absolute, which will allow compatibility with
+# Python 2.5+ and Python 3
+from __future__ import absolute_import
+
 # -*- coding: utf-8 -*-
 
 # MouseTrap
@@ -27,11 +31,6 @@ __date__      = "$Date$"
 __copyright__ = "Copyright (c) 2008 Flavio Percoco Premoli"
 __license__   = "GPLv2"
 
-
-# This will for all imports to be absolute, which will allow compatibility with
-# Python 2.5+ and Python 3
-from __future__ import absolute_import
-
 ####################### TAKEN FROM ORCA'S CODE ###################
 # We're going to force the name of the app to "mousetrap" so pygtk
 # will end up showing us as "mousetrap" to the AT-SPI.  If we don't


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]