Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed Oct 27, 2023
1 parent 7e5d0d1 commit b447e71
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions awscrt/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import threading
from enum import IntEnum


class S3RequestType(IntEnum):
"""The type of the AWS S3 request"""

Expand Down
1 change: 0 additions & 1 deletion source/s3.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

#include "module.h"


PyObject *aws_py_s3_is_env_ec2(PyObject *self, PyObject *args);
PyObject *aws_py_s3_get_ec2_instance_type(PyObject *self, PyObject *args);
PyObject *aws_py_s3_is_crt_s3_optimized_for_system(PyObject *self, PyObject *args);
Expand Down
6 changes: 3 additions & 3 deletions source/s3_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ static const char *s_capsule_name_s3_client = "aws_s3_client";
PyObject *aws_py_s3_is_env_ec2(PyObject *self, PyObject *args) {
(void)self;
(void)args;

/* This will grab the metadata s3 knows about. In the case this is Amazon EC2, the instance
type field will be populated. */
const struct aws_s3_compute_platform_info *compute_info = aws_s3_current_compute_platform_info();

if (compute_info->instance_type.len > 0) {
Py_RETURN_TRUE;
}
Expand All @@ -43,7 +43,7 @@ PyObject *aws_py_s3_get_ec2_instance_type(PyObject *self, PyObject *args) {
PyObject *aws_py_s3_is_crt_s3_optimized_for_system(PyObject *self, PyObject *args) {
(void)self;
(void)args;

const struct aws_s3_compute_platform_info *compute_info = aws_s3_current_compute_platform_info();

if (compute_info->has_recommended_configuration) {
Expand Down

0 comments on commit b447e71

Please sign in to comment.