From 0411bb6b446f8b9f34fc35a60552cf1f2cb498f3 Mon Sep 17 00:00:00 2001 From: Bas Stottelaar Date: Tue, 8 Apr 2014 22:49:03 +0200 Subject: [PATCH] Importing with statement is for Python 2.5. Bases on libraries (e.g. beautifulsoup4), I guess the minimal version for Headphones is at least 2.6 --- headphones/__init__.py | 5 +---- headphones/mb.py | 2 -- headphones/postprocessor.py | 2 -- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/headphones/__init__.py b/headphones/__init__.py index 47588ec4..6e7fd194 100644 --- a/headphones/__init__.py +++ b/headphones/__init__.py @@ -15,20 +15,17 @@ # NZBGet support added by CurlyMo as a part of XBian - XBMC on the Raspberry Pi -from __future__ import with_statement - import os, sys, subprocess import threading import webbrowser import sqlite3 import itertools +import cherrypy from lib.apscheduler.scheduler import Scheduler from lib.configobj import ConfigObj -import cherrypy - from headphones import versioncheck, logger, version from headphones.common import * diff --git a/headphones/mb.py b/headphones/mb.py index 25061bf3..ff4ac42d 100644 --- a/headphones/mb.py +++ b/headphones/mb.py @@ -13,8 +13,6 @@ # You should have received a copy of the GNU General Public License # along with Headphones. If not, see . -from __future__ import with_statement - import time import threading diff --git a/headphones/postprocessor.py b/headphones/postprocessor.py index 6b56d510..cf64258f 100644 --- a/headphones/postprocessor.py +++ b/headphones/postprocessor.py @@ -13,8 +13,6 @@ # You should have received a copy of the GNU General Public License # along with Headphones. If not, see . -from __future__ import with_statement - import os import re import shutil