Skip to content

Commit 0308912

Browse files
author
James Dalessio
committed
Remove 2.7 only formatters.
1 parent 5440a82 commit 0308912

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

circle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
machine:
22
python:
3-
version: 2.7.10
3+
version: 2.6
44
node:
55
version: 4.2.3
66

exp_sdk/api.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@ def _get_channel_name (self):
6666
return self.uuid
6767

6868
def _get_resource_path (self):
69-
return '{}/{}'.format(self._collection_path, self.uuid)
69+
return '{1}/{2}'.format(self._collection_path, self.uuid)
7070

7171
@classmethod
7272
def get (cls, uuid, sdk):
7373
if not uuid or not isinstance(uuid, basestring):
7474
return None
75-
path = '{}/{}'.format(cls._collection_path, uuid)
75+
path = '{1}/{2}'.format(cls._collection_path, uuid)
7676
try:
7777
remote_document = sdk.api.get(path)
7878
except sdk.exceptions.ApiError as exception:
@@ -292,11 +292,11 @@ def value(self, value):
292292
self.document['value'] = value
293293

294294
def _get_resource_path(self):
295-
return '{}/{}/{}'.format(self._collection_path, self.group, self.key)
295+
return '{1}/{2}/{3}'.format(self._collection_path, self.group, self.key)
296296

297297
@classmethod
298298
def get (cls, group, key, sdk):
299-
path = '{}/{}/{}'.format(cls._collection_path, group, key)
299+
path = '{1}/{2}/{3}'.format(cls._collection_path, group, key)
300300
try:
301301
document = sdk.api.get(path)
302302
except sdk.exceptions.ApiError as exception:
@@ -307,7 +307,7 @@ def get (cls, group, key, sdk):
307307

308308
@classmethod
309309
def create (cls, group, key, value, sdk):
310-
path = '{}/{}/{}'.format(cls._collection_path, group, key)
310+
path = '{1}/{2}/{3}'.format(cls._collection_path, group, key)
311311
document = sdk.api.put(path, value)
312312
data = cls(document, sdk)
313313
return data
@@ -316,7 +316,7 @@ def save (self):
316316
self._document = self._sdk.api.put(self._get_resource_path(), self.value)
317317

318318
def _get_channel_name (self):
319-
return 'data:{}:{}'.format(self.group, self.key)
319+
return 'data:{1}:{2}'.format(self.group, self.key)
320320

321321

322322

0 commit comments

Comments
 (0)