equal
deleted
inserted
replaced
103 del cnx.transaction_data['fs_importing'] |
103 del cnx.transaction_data['fs_importing'] |
104 |
104 |
105 |
105 |
106 class BytesFileSystemStorage(Storage): |
106 class BytesFileSystemStorage(Storage): |
107 """store Bytes attribute value on the file system""" |
107 """store Bytes attribute value on the file system""" |
108 def __init__(self, defaultdir, fsencoding='utf-8', wmode=0444): |
108 def __init__(self, defaultdir, fsencoding='utf-8', wmode=0o444): |
109 if type(defaultdir) is unicode: |
109 if type(defaultdir) is unicode: |
110 defaultdir = defaultdir.encode(fsencoding) |
110 defaultdir = defaultdir.encode(fsencoding) |
111 self.default_directory = defaultdir |
111 self.default_directory = defaultdir |
112 self.fsencoding = fsencoding |
112 self.fsencoding = fsencoding |
113 # extra umask to use when creating file |
113 # extra umask to use when creating file |