summaryrefslogtreecommitdiff
path: root/timestamp.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2021-03-26 11:20:38 +0100
committerAnthon van der Neut <anthon@mnt.org>2021-03-26 11:20:38 +0100
commit09f8576ae990234daebf51cca48b52d564f2c2d2 (patch)
treee08953ec5547d9ed05373a3134c3557f6ebf11c6 /timestamp.py
parente8719cd39655d98cf2bde1be15366cca7a58fd89 (diff)
downloadruamel.yaml-09f8576ae990234daebf51cca48b52d564f2c2d2.tar.gz
remove support for 2.7, prepare for f-strings0.17.0
Diffstat (limited to 'timestamp.py')
-rw-r--r--timestamp.py15
1 files changed, 12 insertions, 3 deletions
diff --git a/timestamp.py b/timestamp.py
index b123951..8f00db2 100644
--- a/timestamp.py
+++ b/timestamp.py
@@ -25,9 +25,18 @@ class TimeStamp(datetime.datetime):
ts._yaml = copy.deepcopy(self._yaml)
return ts
- def replace(self, year=None, month=None, day=None, hour=None,
- minute=None, second=None, microsecond=None, tzinfo=True,
- fold=None):
+ def replace(
+ self,
+ year=None,
+ month=None,
+ day=None,
+ hour=None,
+ minute=None,
+ second=None,
+ microsecond=None,
+ tzinfo=True,
+ fold=None,
+ ):
if year is None:
year = self.year
if month is None: