Improve formatting in Client._make_request
authorHarmon <Harmon758@gmail.com>
Wed, 22 Dec 2021 21:35:58 +0000 (15:35 -0600)
committerGitHub <noreply@github.com>
Wed, 22 Dec 2021 21:35:58 +0000 (15:35 -0600)
tweepy/client.py

index 9f7ee600ca52c9e2fcc93ca7c166ccfdc9a1016f..10acdc574933a7acbfb6bfed599b47adf97a6c39 100644 (file)
@@ -156,7 +156,8 @@ class Client:
                 if param_value.tzinfo is not None:
                     param_value = param_value.astimezone(datetime.timezone.utc)
                 request_params[param_name] = param_value.strftime(
-                    "%Y-%m-%dT%H:%M:%S.%fZ")
+                    "%Y-%m-%dT%H:%M:%S.%fZ"
+                )
                 # TODO: Constant datetime format string?
             else:
                 request_params[param_name] = param_value