kuuko pushed a commit to branch master.
commit 3aee0036b4941f65aaffad1a49bbbf34b353e173
Author: Kai Huuhko <[email protected]>
Date: Wed Apr 3 16:36:57 2013 +0000
Use UTF-8 encoding when opening the headers for api coverage script.
---
api_coverage.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/api_coverage.py b/api_coverage.py
index b6aa2a0..9c5d305 100755
--- a/api_coverage.py
+++ b/api_coverage.py
@@ -29,7 +29,7 @@ def get_capis(inc_path, prefix):
for path, dirs, files in os.walk(inc_path):
for f in files:
- with open(os.path.join(path, f), "r") as header:
+ with open(os.path.join(path, f), encoding="UTF-8", mode="r") as
header:
capi = header.read()
matches = re.finditer("^ *EAPI [A-Za-z_ *\n]+ +\**(?!" +
c_excludes + ")(" + prefix + "_\w+) *\(", capi, re.S|re.M)
for match in matches:
--
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html