From ab6d5534947e9c0de3eb798ab457e3914eb543bc Mon Sep 17 00:00:00 2001
From: Bruce Cowan <bruce@bcowan.eu>
Date: Sat, 27 Jan 2018 10:40:21 +0000
Subject: [PATCH] Use format() rather than string concatenation

If we ever do localisation, this will be required
---
 datetime.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/datetime.py b/datetime.py
index 22f7597..13274b9 100644
--- a/datetime.py
+++ b/datetime.py
@@ -35,16 +35,16 @@ class Datetime(BotPlugin):
     @botcmd
     def date(self, message, args):
         """Displays the current date in the current locale"""
-        return "The date is " + self._get_date_time('%x')
+        return "The date is {}".format(self._get_date_time('%x'))
 
     @botcmd
     def time(self, message, args):
         """Displays the current time in the current locale"""
-        return "The time is " + self._get_date_time('%X')
+        return "The time is {}".format(self._get_date_time('%X'))
 
     @botcmd
     def strftime(self, message, args):
         """Formatted date and/or time using strftime"""
         if not args:
             return "**Usage**: !datetime strftime <format>"
-        return "The date and time is " + self._get_date_time(args)
+        return "The date and time are {}".format(self._get_date_time(args))
-- 
GitLab