| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1074,8 +1074,8 @@ def RepositoryName(self): | |||
| 1074 | 1074 | """ | |
| 1075 | 1075 | fullname = self.FullName() | |
| 1076 | 1076 | # XXX(bnoordhuis) Expects that cpplint.py lives in the tools/ directory. | |
| 1077 | - toplevel = os.path.abspath( | ||
| 1078 | - os.path.join(os.path.dirname(__file__), '..')).replace('\\', '/') | ||
| 1077 | + toplevel = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) \ | ||
| 1078 | + .replace('\\', '/').decode('utf-8') | ||
| 1079 | 1079 | prefix = os.path.commonprefix([fullname, toplevel]) | |
| 1080 | 1080 | return fullname[len(prefix) + 1:] | |
| 1081 | 1081 | ||
@@ -6084,7 +6084,7 @@ def main(): | |||
| 6084 | 6084 | ||
| 6085 | 6085 | _cpplint_state.ResetErrorCounts() | |
| 6086 | 6086 | for filename in filenames: | |
| 6087 | - ProcessFile(filename, _cpplint_state.verbose_level) | ||
| 6087 | + ProcessFile(filename.decode('utf-8'), _cpplint_state.verbose_level) | ||
| 6088 | 6088 | _cpplint_state.PrintErrorCounts() | |
| 6089 | 6089 | ||
| 6090 | 6090 | sys.exit(_cpplint_state.error_count > 0) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments