From 2fd8001ba59ee8972f4a8221aba244ef98e3ae8f Mon Sep 17 00:00:00 2001 From: Nikolai R Kristiansen Date: Mon, 25 Jul 2016 18:06:44 +0200 Subject: [PATCH] fix context_diff in python3 --- mdb/management/commands/dhcp-sync.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mdb/management/commands/dhcp-sync.py b/mdb/management/commands/dhcp-sync.py index 0f62474..ae96fb3 100644 --- a/mdb/management/commands/dhcp-sync.py +++ b/mdb/management/commands/dhcp-sync.py @@ -71,8 +71,8 @@ class Command(BaseCommand): diff = "\n".join(context_diff( a=old.splitlines(), b=new.splitlines(), - fromfile=config.active_serial, - tofile=config.serial, + fromfile=str(config.active_serial), + tofile=str(config.serial), lineterm='')) print(diff)