Package: denyhosts
Version: 2.6-5
Severity: normal
Tags: patch
Hello,
When I tried to run dh_reenable, it fails with the following error.
----------
File "/usr/share/denyhosts/DenyHosts/dh_reenable", line 22
from __future__ import with_statement
SyntaxError: from __future__ imports must occur at the beginning
of the file
----------
I've attached a very simple patch correct the issue.
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'testing'), (500, 'stable'), (1,
'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages denyhosts depends on:
ii lsb-base 3.2-20 Linux Standard Base 3.2 init scrip
ii python 2.5.2-3 An interactive high-level object-o
ii python-central 0.6.8 register and build utility for Pyt
denyhosts recommends no packages.
denyhosts suggests no packages.
-- no debconf information
--- dh_reenable.ori 2008-12-01 21:02:49.000000000 +0100
+++ tmp/dh_reenable 2008-12-01 20:58:13.000000000 +0100
@@ -15,11 +15,11 @@
# http://www.gnu.org/licenses/gpl-3.0.txt
+from __future__ import with_statement
import os
import sys
import fileinput
import re
-from __future__ import with_statement
# file definition: