Skip to content

Commit

Permalink
Move constants to transferconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesls committed Feb 2, 2015
1 parent 2e3477d commit 9ba4d38
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions awscli/customizations/s3/s3handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
import os
import sys

from awscli.customizations.s3.constants import MULTI_THRESHOLD, CHUNKSIZE, \
NUM_THREADS, MAX_QUEUE_SIZE
from awscli.customizations.s3.transferconfig import MULTI_THRESHOLD, \
CHUNKSIZE, NUM_THREADS, MAX_QUEUE_SIZE
from awscli.customizations.s3.utils import find_chunksize, \
operate, find_bucket_key, relative_path, PrintTask, create_warning
from awscli.customizations.s3.executor import Executor
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/unit/customizations/s3/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class S3HandlerBaseTest(unittest.TestCase):
shorter amount of time.
"""
def setUp(self):
wait = 'awscli.customizations.s3.constants.QUEUE_TIMEOUT_WAIT'
wait = 'awscli.customizations.s3.transferconfig.QUEUE_TIMEOUT_WAIT'
self.wait_timeout_patch = patch(wait, 0.01)
self.mock_wait = self.wait_timeout_patch.start()

Expand Down
4 changes: 2 additions & 2 deletions tests/unit/customizations/s3/test_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

from botocore.exceptions import IncompleteReadError

from awscli.customizations.s3 import constants
from awscli.customizations.s3 import transferconfig
from awscli.customizations.s3.tasks import CreateLocalFileTask
from awscli.customizations.s3.tasks import CompleteDownloadTask
from awscli.customizations.s3.tasks import DownloadPartTask
Expand Down Expand Up @@ -410,7 +410,7 @@ def test_retried_requests_dont_enqueue_writes_twice(self):
success_read,
]
self.filename.is_stream = True
task = DownloadPartTask(0, constants.CHUNKSIZE, self.result_queue,
task = DownloadPartTask(0, transferconfig.CHUNKSIZE, self.result_queue,
self.service, self.filename, self.context,
self.io_queue)
task()
Expand Down

0 comments on commit 9ba4d38

Please sign in to comment.