Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesEbke committed Nov 11, 2022
1 parent d1d383f commit 55e7e68
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions aws_list_all/__main__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
#!/usr/bin/env python
from __future__ import print_function

import os
from platform import python_version_tuple
from argparse import ArgumentParser
from sys import exit, stderr

python_major, python_minor, _ = python_version_tuple()
if int(python_major) < 3 or (int(python_major) == 3 and int(python_minor) < 7):
print("WARNING: Unsupported python version. The program may crash now.")


import os
from .introspection import (
get_listing_operations, get_services, get_verbs, introspect_regions_for_service, recreate_caches
)
from .query import do_list_files, do_query

CAN_SET_OPEN_FILE_LIMIT = False
try:
Expand All @@ -17,13 +18,9 @@
except ImportError:
pass

from argparse import ArgumentParser
from sys import exit, stderr

from .introspection import (
get_listing_operations, get_services, get_verbs, introspect_regions_for_service, recreate_caches
)
from .query import do_list_files, do_query
python_major, python_minor, _ = python_version_tuple()
if int(python_major) < 3 or (int(python_major) == 3 and int(python_minor) < 7):
print("WARNING: Unsupported python version. The program may crash now.")


def increase_limit_nofiles():
Expand Down

0 comments on commit 55e7e68

Please sign in to comment.