[gnome-games/sudoku-tube] Arrange imports per pep8
- From: Zhang Sen <zhangsen src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-games/sudoku-tube] Arrange imports per pep8
- Date: Tue, 30 Jun 2009 07:27:03 +0000 (UTC)
commit 956db0f7fa9553ce48153629d622f77a911acba2
Author: Zhang Sen <zh jesse gmail com>
Date: Tue Jun 30 15:26:27 2009 +0800
Arrange imports per pep8
gnome-sudoku/src/lib/gsudoku.py | 9 ++++++---
gnome-sudoku/src/lib/number_box.py | 8 +++++---
gnome-sudoku/src/lib/sudoku.py | 3 ++-
3 files changed, 13 insertions(+), 7 deletions(-)
---
diff --git a/gnome-sudoku/src/lib/gsudoku.py b/gnome-sudoku/src/lib/gsudoku.py
index 2fe01b6..96259e2 100644
--- a/gnome-sudoku/src/lib/gsudoku.py
+++ b/gnome-sudoku/src/lib/gsudoku.py
@@ -1,10 +1,13 @@
# -*- coding: utf-8 -*-
-import gtk, gobject
-import colors
import math
import random
-import sudoku
+
+import gtk
+import gobject
+
+import colors
import number_box
+import sudoku
TRACKER_COLORS = [
# Use tango colors recommended here:
diff --git a/gnome-sudoku/src/lib/number_box.py b/gnome-sudoku/src/lib/number_box.py
index 434dd74..8cfc9fe 100644
--- a/gnome-sudoku/src/lib/number_box.py
+++ b/gnome-sudoku/src/lib/number_box.py
@@ -1,8 +1,10 @@
# -*- coding: utf-8 -*-
-#!/usr/bin/python
-
-import gtk, gobject, pango, cairo
import math
+
+import cairo
+import gobject
+import gtk
+import pango
from gettext import gettext as _
ERROR_HIGHLIGHT_COLOR = (1.0, 0, 0)
diff --git a/gnome-sudoku/src/lib/sudoku.py b/gnome-sudoku/src/lib/sudoku.py
index e1352bf..06823cb 100644
--- a/gnome-sudoku/src/lib/sudoku.py
+++ b/gnome-sudoku/src/lib/sudoku.py
@@ -1,7 +1,8 @@
# -*- coding: utf-8 -*-
-import random
import math
+import random
import re
+
from gettext import gettext as _
GROUP_SIZE = 9
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]