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
This commit is contained in:
Bas Stottelaar
2014-04-08 22:49:03 +02:00
parent d0198b15ee
commit 0411bb6b44
3 changed files with 1 additions and 8 deletions
+1 -4
View File
@@ -15,20 +15,17 @@
# NZBGet support added by CurlyMo <curlymoo1@gmail.com> as a part of XBian - XBMC on the Raspberry Pi # NZBGet support added by CurlyMo <curlymoo1@gmail.com> as a part of XBian - XBMC on the Raspberry Pi
from __future__ import with_statement
import os, sys, subprocess import os, sys, subprocess
import threading import threading
import webbrowser import webbrowser
import sqlite3 import sqlite3
import itertools import itertools
import cherrypy
from lib.apscheduler.scheduler import Scheduler from lib.apscheduler.scheduler import Scheduler
from lib.configobj import ConfigObj from lib.configobj import ConfigObj
import cherrypy
from headphones import versioncheck, logger, version from headphones import versioncheck, logger, version
from headphones.common import * from headphones.common import *
-2
View File
@@ -13,8 +13,6 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with Headphones. If not, see <http://www.gnu.org/licenses/>. # along with Headphones. If not, see <http://www.gnu.org/licenses/>.
from __future__ import with_statement
import time import time
import threading import threading
-2
View File
@@ -13,8 +13,6 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with Headphones. If not, see <http://www.gnu.org/licenses/>. # along with Headphones. If not, see <http://www.gnu.org/licenses/>.
from __future__ import with_statement
import os import os
import re import re
import shutil import shutil