[pitivi] Alphabetically sort imports in utils/misc, utils/ui and previewers
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] Alphabetically sort imports in utils/misc, utils/ui and previewers
- Date: Wed, 17 Jul 2013 00:49:09 +0000 (UTC)
commit e4aa00eba489ae9eca50957573c933f8bb0b53f3
Author: Jean-François Fortin Tam <nekohayo gmail com>
Date: Tue Jul 2 00:33:02 2013 -0400
Alphabetically sort imports in utils/misc, utils/ui and previewers
pitivi/timeline/previewers.py | 22 +++++++++-------------
pitivi/utils/misc.py | 15 ++++++---------
pitivi/utils/ui.py | 19 +++++++++----------
3 files changed, 24 insertions(+), 32 deletions(-)
---
diff --git a/pitivi/timeline/previewers.py b/pitivi/timeline/previewers.py
index 952a605..cc2c716 100644
--- a/pitivi/timeline/previewers.py
+++ b/pitivi/timeline/previewers.py
@@ -20,32 +20,28 @@
# Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301, USA.
+from datetime import datetime, timedelta
+from gi.repository import Clutter, Gst, GLib, GdkPixbuf, Cogl
+from math import log1p, log10
+from random import randrange
+from renderer import *
+import cairo
+import hashlib
import multiprocessing
import numpy
-import hashlib
import os
+import pickle
+import resource
import sqlite3
import sys
-import cairo
import xdg.BaseDirectory as xdg_dirs
-from random import randrange
-from datetime import datetime, timedelta
-from gi.repository import Clutter, Gst, GLib, GdkPixbuf, Cogl
from pitivi.utils.loggable import Loggable
from pitivi.utils.timeline import Zoomable
from pitivi.utils.ui import EXPANDED_SIZE, SPACING
from pitivi.utils.misc import filename_from_uri, quote_uri
from pitivi.utils.ui import EXPANDED_SIZE, SPACING, CONTROL_WIDTH
-from math import log1p, log10
-
-import resource
-
-import pickle
-
-from renderer import *
-
WAVEFORMS_CPU_USAGE = 30 * multiprocessing.cpu_count()
diff --git a/pitivi/utils/misc.py b/pitivi/utils/misc.py
index 668fab5..b9b0661 100644
--- a/pitivi/utils/misc.py
+++ b/pitivi/utils/misc.py
@@ -22,25 +22,22 @@
# set of utility functions
-import sys
+from gettext import gettext as _
+from gi.repository import GLib
from gi.repository import GObject
from gi.repository import Gst
from gi.repository import Gtk
-from gi.repository import GLib
+from urllib import quote, unquote
+from urlparse import urlsplit, urlunsplit, urlparse
import hashlib
import os
import struct
-import time
+import sys
import threading
-
-from gettext import gettext as _
-
-from urlparse import urlsplit, urlunsplit, urlparse
-from urllib import quote, unquote
+import time
import pitivi.utils.loggable as log
from pitivi.utils.threads import Thread
-
from pitivi.configure import APPMANUALURL_OFFLINE, APPMANUALURL_ONLINE, APPNAME
try:
diff --git a/pitivi/utils/ui.py b/pitivi/utils/ui.py
index 76e976a..b2d47e6 100644
--- a/pitivi/utils/ui.py
+++ b/pitivi/utils/ui.py
@@ -25,21 +25,20 @@
UI utilities. This file contain the UI constants, and various functions and
classes that help with UI drawing around the application
"""
-import glib
-from gi.repository import Gst
-from gi.repository import GES
-from gi.repository import Gtk
-import os
-import cairo
-from gi.repository import Gtk
-from itertools import izip
-from urllib import unquote
-from gettext import ngettext, gettext as _
from decimal import Decimal
+from gettext import ngettext, gettext as _
+from gi.repository import GES
+from gi.repository import Gst
+from gi.repository import Gtk
from gi.repository.GstPbutils import DiscovererVideoInfo, DiscovererAudioInfo,\
DiscovererStreamInfo, DiscovererSubtitleInfo
+from itertools import izip
+from urllib import unquote
+import cairo
+import glib
+import os
from pitivi.utils.loggable import doLog, ERROR
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]