diff --git a/awscli/customizations/ec2/paginate.py b/awscli/customizations/ec2/paginate.py index 9a555eed8190..a105333716a4 100644 --- a/awscli/customizations/ec2/paginate.py +++ b/awscli/customizations/ec2/paginate.py @@ -16,7 +16,7 @@ def register_ec2_page_size_injector(event_emitter): EC2PageSizeInjector().register(event_emitter) -class EC2PageSizeInjector(object): +class EC2PageSizeInjector: # Operations to auto-paginate and their specific whitelists. # Format: diff --git a/awscli/customizations/ec2instanceconnect/websocket.py b/awscli/customizations/ec2instanceconnect/websocket.py index 6f3d4618ad7f..67680299fb42 100644 --- a/awscli/customizations/ec2instanceconnect/websocket.py +++ b/awscli/customizations/ec2instanceconnect/websocket.py @@ -211,7 +211,7 @@ def _write_data_from_input(self): try: data = self.websocketio.read(self._MAX_BYTES_PER_FRAME) - except InputClosedError as e: + except InputClosedError: logger.debug('Input closed. Shutting down websocket.') self.close()