Skip to content

Commit 4f0beed

Browse files
committed
styles: fix flake8 styles
1 parent f742db8 commit 4f0beed

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

qiniu/services/cdn/manager.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
import hashlib
1111

12+
1213
class DataType(Enum):
1314
BANDWIDTH = 'bandwidth'
1415
X302BANDWIDTH = '302bandwidth'
@@ -17,6 +18,7 @@ class DataType(Enum):
1718
X302FLOW = '302flow'
1819
X302MFLOW = '302mflow'
1920

21+
2022
def urlencode(str):
2123
if is_py2:
2224
import urllib2
@@ -118,7 +120,7 @@ def get_bandwidth_data(self, domains, start_date, end_date, granularity, data_ty
118120
req.update({"endDate": end_date})
119121
req.update({"granularity": granularity})
120122
if data_type is not None:
121-
req.update({'type': data_type.value}) # should be one of 'bandwidth', '302bandwidth', '302mbandwidth'
123+
req.update({'type': data_type.value}) # should be one of 'bandwidth', '302bandwidth', '302mbandwidth'
122124

123125
body = json.dumps(req)
124126
url = '{0}/v2/tune/bandwidth'.format(self.server)
@@ -145,7 +147,7 @@ def get_flux_data(self, domains, start_date, end_date, granularity, data_type=No
145147
req.update({"endDate": end_date})
146148
req.update({"granularity": granularity})
147149
if data_type is not None:
148-
req.update({'type': data_type.value}) # should be one of 'flow', '302flow', '302mflow'
150+
req.update({'type': data_type.value}) # should be one of 'flow', '302flow', '302mflow'
149151

150152
body = json.dumps(req)
151153
url = '{0}/v2/tune/flux'.format(self.server)

0 commit comments

Comments
 (0)