Replace a use of a keyword argument after splatted positional arguments
(*args) which is not supported by Python 2.4. Using explicit positional
arguments instead of the splat allows Python 2.4 to work for most stg
commands.

Signed-off-by: Peter Grayson <[email protected]>
---
 stgit/lib/git.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/stgit/lib/git.py b/stgit/lib/git.py
index c1565250..cf9f720d 100644
--- a/stgit/lib/git.py
+++ b/stgit/lib/git.py
@@ -106,8 +106,10 @@ def system_date(datestring):
         except run.RunException:
             return None
         (t, z) = d.split("_")
+    year, month, day, hour, minute, second = [int(x) for x in t.split("-")]
     try:
-        return datetime(*[int(x) for x in t.split("-")], tzinfo=TimeZone(z))
+        return datetime(year, month, day, hour, minute, second,
+                        tzinfo=TimeZone(z))
     except ValueError:
         raise DateException(datestring, "date")

_______________________________________________
stgit-users mailing list
[email protected]
https://mail.gna.org/listinfo/stgit-users

Reply via email to