Commit 748ea1d3 authored by Tom Niget's avatar Tom Niget

Fix setup.py

parent eaa0b09c
...@@ -27,7 +27,7 @@ def copy_file(self, infile, outfile, *args, **kw): ...@@ -27,7 +27,7 @@ def copy_file(self, infile, outfile, *args, **kw):
# Adjust interpreter of OpenVPN hooks. # Adjust interpreter of OpenVPN hooks.
with open(infile) as src: with open(infile) as src:
first_line = src.readline() first_line = src.readline()
m = first_line_re.match(first_line.encode()) m = first_line_re.match(first_line)
if m and not self.dry_run: if m and not self.dry_run:
log.info("copying and adjusting %s -> %s", infile, outfile) log.info("copying and adjusting %s -> %s", infile, outfile)
executable = self.distribution.command_obj['build'].executable executable = self.distribution.command_obj['build'].executable
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment