(arg)
| 1015 | # All datetime arguments must be naive. If they are not naive, they are |
| 1016 | # converted to the _tzinfo zone before dropping the zone. |
| 1017 | def normalize_arg(arg): |
| 1018 | if isinstance(arg, datetime.datetime) and arg.tzinfo is not None: |
| 1019 | if arg.tzinfo is not self._tzinfo: |
| 1020 | arg = arg.astimezone(self._tzinfo) |
| 1021 | |
| 1022 | return arg.replace(tzinfo=None) |
| 1023 | |
| 1024 | return arg |
| 1025 | |
| 1026 | def normalize_args(args, kwargs): |
| 1027 | args = tuple(normalize_arg(arg) for arg in args) |
nothing calls this directly
no test coverage detected