Skip to content

Commit 353c348

Browse files
committed
Fix linting
1 parent 63dd9e9 commit 353c348

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

waterbutler/providers/box/provider.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def will_self_overwrite(self, dest_provider, src_path, dest_path):
189189
def can_intra_move(
190190
self,
191191
other: provider.BaseProvider,
192-
path: wb_path.WaterButlerPath=None
192+
path: WaterButlerPath=None
193193
) -> bool:
194194
return self == other
195195

@@ -226,7 +226,7 @@ async def intra_copy(
226226
}
227227
}),
228228
headers={'Content-Type': 'application/json'},
229-
expects=(200, 201),
229+
expects={200, 201},
230230
throws=exceptions.IntraCopyError
231231
) as resp:
232232
data = await resp.json()
@@ -235,17 +235,20 @@ async def intra_copy(
235235

236236
async def intra_move(
237237
self, # type: ignore
238-
dest_provider: provider.BaseProvider, src_path: WaterButlerPath,
238+
dest_provider: provider.BaseProvider,
239+
src_path: WaterButlerPath,
239240
dest_path: WaterButlerPath
240241
) -> Tuple[BaseBoxMetadata, bool]:
241-
242242
if src_path.identifier == dest_path.identifier:
243243
raise exceptions.IntraCopyError(
244244
"Cannot overwrite a file with itself",
245245
code=HTTPStatus.CONFLICT
246246
)
247247

248-
if dest_path.identifier is not None and str(dest_path).lower() != str(src_path).lower():
248+
if (
249+
dest_path.identifier is not None and
250+
str(dest_path).lower() != str(src_path).lower()
251+
):
249252
await dest_provider.delete(dest_path)
250253

251254
async with self.request(
@@ -261,7 +264,7 @@ async def intra_move(
261264
}
262265
}),
263266
headers={'Content-Type': 'application/json'},
264-
expects=(200, 201),
267+
expects={200, 201},
265268
throws=exceptions.IntraCopyError
266269
) as resp:
267270
data = await resp.json()

waterbutler/server/api/v1/provider/movecopy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ async def move_or_copy(self):
132132
self.dest_auth['credentials'],
133133
self.dest_auth['settings']
134134
)
135-
self.dest_path = await self.dest_provider.validate_path(**self.json)
135+
self.dest_path = await self.dest_provider.validate_path(**self.json)
136136

137137
if not getattr(self.provider, 'can_intra_' + provider_action)(self.dest_provider, self.path):
138138
# this weird signature syntax courtesy of py3.4 not liking trailing commas on kwargs

0 commit comments

Comments
 (0)