Fix pylint warnings in update_device.py
am: 1048559a5c
Change-Id: I7b8b8887d218252ff692da0794c28f82b0bf9493
diff --git a/pylintrc b/pylintrc
index f83f8c6..f264479 100644
--- a/pylintrc
+++ b/pylintrc
@@ -263,7 +263,7 @@
bad-functions=map,filter,input,apply,reduce
# Good variable names which should always be accepted, separated by a comma
-good-names=i,j,k,ex,x,_
+good-names=i,j,k,ex,x,_,main
# Bad variable names which should always be refused, separated by a comma
bad-names=foo,bar,baz,toto,tutu,tata
diff --git a/scripts/update_device.py b/scripts/update_device.py
index 75c58a7..63d0fc9 100755
--- a/scripts/update_device.py
+++ b/scripts/update_device.py
@@ -93,7 +93,7 @@
"""
@staticmethod
- def _ParseRange(range_str, file_size):
+ def _parse_range(range_str, file_size):
"""Parse an HTTP range string.
Args:
@@ -141,11 +141,11 @@
self.send_response(200)
stat = os.fstat(f.fileno())
- start_range, end_range = self._ParseRange(self.headers.get('range'),
- stat.st_size)
+ start_range, end_range = self._parse_range(self.headers.get('range'),
+ stat.st_size)
logging.info('Serving request for %s from %s [%d, %d) length: %d',
- self.path, self.serving_payload, start_range, end_range,
- end_range - start_range)
+ self.path, self.serving_payload, start_range, end_range,
+ end_range - start_range)
self.send_header('Accept-Ranges', 'bytes')
self.send_header('Content-Range',