From f331f53a531169520a4d8ea15d277560a49aedb5 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Mon, 7 Feb 2022 08:06:48 -0800 Subject: [PATCH] use !r formatting instead of quotes --- CHANGELOG | 1 + jc/utils.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 535bbaff..19dfa4da 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -3,6 +3,7 @@ jc changelog 20220202 v1.18.3 - Add rsync command and log file parser tested on linux and macOS - Add rsync command and log file streaming parser tested on linux and macOS +- Enhance timestamp performance with caching and format hints - Refactor ignore_exceptions functionality in streaming parsers 20220127 v1.18.2 diff --git a/jc/utils.py b/jc/utils.py index 916ba530..6986963d 100644 --- a/jc/utils.py +++ b/jc/utils.py @@ -258,7 +258,7 @@ class timestamp: self.utc = dt['timestamp_utc'] def __repr__(self): - return f'timestamp(string="{self.string}", format={self.format}, naive={self.naive}, utc={self.utc})' + return f'timestamp(string={self.string!r}, format={self.format}, naive={self.naive}, utc={self.utc})' def _parse(self): """