diff --git a/awscrt/s3.py b/awscrt/s3.py index 79056816f..7b35cc640 100644 --- a/awscrt/s3.py +++ b/awscrt/s3.py @@ -15,6 +15,7 @@ import threading from enum import IntEnum + class S3RequestType(IntEnum): """The type of the AWS S3 request""" diff --git a/source/s3.h b/source/s3.h index 32f0b270f..83873f65b 100644 --- a/source/s3.h +++ b/source/s3.h @@ -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); diff --git a/source/s3_client.c b/source/s3_client.c index 5d53ccc6c..4f8f3c29e 100644 --- a/source/s3_client.c +++ b/source/s3_client.c @@ -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; } @@ -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) {