~omnisync/omnisync/trunk

« back to all changes in this revision

Viewing changes to omnisync/transports/s3.py

  • Committer: Stavros Korokithakis
  • Date: 2008-07-16 17:20:44 UTC
  • Revision ID: stavros@korokithakis.net-20080716172044-nn0uyrkrusmyp1d0
IĀ hateĀ imports.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
"""S3 transport module."""
2
2
 
3
 
from transports.transportmount import TransportInterface
4
 
from fileobject import FileObject
 
3
from omnisync.transportmount import TransportInterface
 
4
from omnisync.fileobject import FileObject
 
5
from omnisync import urlfunctions
5
6
 
6
7
import getpass
7
 
import urlfunctions
8
8
import time
9
9
import errno
10
10
 
20
20
    uses_hostname = True
21
21
    # listdir_attributes is a set that contains the file attributes that listdir()
22
22
    # supports.
23
 
    listdir_attributes = set(("size"))
 
23
    listdir_attributes = set(("size", ))
24
24
    # Conversely, for getattr().
25
25
    getattr_attributes = set()
26
26
    # List the attributes setattr() can set.
27
27
    setattr_attributes = set()
28
28
    # Define attributes that can be used to decide whether a file has been changed
29
29
    # or not.
30
 
    evaluation_attributes = set(("size",))
 
30
    evaluation_attributes = set(("size", ))
31
31
    # The preferred buffer size for reads/writes.
32
32
    buffer_size = 2**15
33
33