dysosmus / gitinspector

Automatically exported from code.google.com/p/gitinspector
GNU General Public License v3.0
0 stars 0 forks source link

UnicodeDecodeError: 'unicodeescape' codec can't decode bytes in position 137-138: truncated \UXXXXXXXX escape #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run `python gitinspector.py /path/to/repo/` 
2.
3.

What is the expected output? What do you see instead?
Stats for my git repository.

What version of the product are you using?
0.3.2

What version of Python?
2.7.6

On what operating system?
Mac OS X 10.10 (Yosemite)

Traceback (most recent call last):
  File "/usr/local/bin/gitinspector.py", line 136, in <module>
    __run__.output()
  File "/usr/local/bin/gitinspector.py", line 57, in output
    outputable.output(changes.ChangesOutput(self.hard))
  File "/usr/local/bin/outputable.py", line 37, in output
    outputable.output_text()
  File "/usr/local/bin/changes.py", line 225, in output_text
    authorinfo_list = get(self.hard).get_authorinfo_list()
  File "/usr/local/bin/changes.py", line 158, in get
    __changes__ = Changes(hard)
  File "/usr/local/bin/changes.py", line 102, in __init__
    i = codecs.getdecoder("unicode_escape")(i.strip())[0]
UnicodeDecodeError: 'unicodeescape' codec can't decode bytes in position 
137-138: truncated \UXXXXXXXX escape

Original issue reported on code.google.com by chiang.x...@gmail.com on 27 Oct 2014 at 7:37

GoogleCodeExporter commented 9 years ago
Thank you for the report. I will take a look at this shortly.

Original comment by gitinspe...@ejwa.se on 3 Nov 2014 at 9:25

GoogleCodeExporter commented 9 years ago
Hi. I think this has already been fixed in the master branch. Please check out 
the latest version from the repository and see if it takes care of it.

/Adam Waldenberg

Original comment by gitinspe...@ejwa.se on 24 Nov 2014 at 8:11

GoogleCodeExporter commented 9 years ago
In fact, the code you are reporting is from version 0.2.2. It was removed with 
the 0.3.0 release. Are you sure you are running 0.3.2 and not 0.2.2 ?

Original comment by gitinspe...@ejwa.se on 24 Nov 2014 at 8:19

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
See revision 8a386225fd9f for the fix for this issue.

/Adam Waldenberg

Original comment by gitinspe...@ejwa.se on 24 Nov 2014 at 8:22

GoogleCodeExporter commented 9 years ago
I can confirm that this is fixed in that revision.

Original comment by chiang.x...@gmail.com on 24 Nov 2014 at 10:49

GoogleCodeExporter commented 9 years ago
Great. Marking as fixed in 0.3.0.

/Adam Waldenberg

Original comment by gitinspe...@ejwa.se on 25 Nov 2014 at 2:37