Custom Query (121 matches)
Results (10 - 12 of 121)
| Ticket | Resolution | Summary | Owner | Reporter |
|---|---|---|---|---|
| #66 | worksforme | ScannerError in fetch_more_tokens | xi | Takanao Endoh <djmchl@…> |
| Description |
>>> import yaml
>>> yaml.load(" 'spam: %' ")
'spam: %'
>>> yaml.load(" spam: % ")
------------------------------------------------------------
Traceback (most recent call last):
...
File "/Volumes/data/pylib/src/yaml/scanner.py", line 257, in fetch_more_tokens
% ch.encode('utf-8'), self.get_mark())
ScannerError: while scanning for the next token
found character '%' that cannot start any token
in "<string>", line 1, column 8:
spam: %
^
|
|||
| #129 | fixed | Incorrect Unicode BOM generation | xi | Valentin Nechayev <netchv@…> |
| Description |
py-YAML 3.07, with Python 2.5 and FreeBSD (package name py25-yaml-3.07_2) When yaml.dump() generates stream in utf-16be or utf-16le, it generates byte-order mark (BOM), but makes it incorrectly. Example: >>> yaml.dump("xyz", encoding = 'utf-16be')
'\x00\xff\x00\xfe\x00x\x00y\x00z\x00\n\x00.\x00.\x00.\x00\n'
Instead, it should generate: '\xfe\xff\x00x\x00y\x00z\x00\n\x00.\x00.\x00.\x00\n' Fix: --- 01/PyYAML-3.07/lib/yaml/emitter.py 2008-12-29 01:36:32.000000000 +0200
+++ work/PyYAML-3.07/lib/yaml/emitter.py 2009-06-06 16:48:39.000000000 +0300
@@ -787,7 +787,7 @@
def write_stream_start(self):
# Write BOM if needed.
if self.encoding and self.encoding.startswith('utf-16'):
- self.stream.write(u'\xFF\xFE'.encode(self.encoding))
+ self.stream.write(u'\uFEFF'.encode(self.encoding))
def write_stream_end(self):
self.flush_stream()
P.S. I guess it also should generate BOMs for utf-32* |
|||
| #222 | invalid | Cant seem to install pyyaml on mac os x lion | anonymous | alex.kikinis7@… |
| Description |
I downloaded pyyaml form this link http://pyyaml.org/download/pyyaml/PyYAML-3.09.tar.gz on the nltk site. i see it is not the latest version, shouldnt matter right? anywyas followed readme instructions (unclear at best) all they said was type 'python setup.py install' i opened a terminal window and did just that, but receicved the following error python: can't open file 'setup.py': [Errno 2] No such file or directory not sure what to do, not experienced in programming or anything, just getting started |
|||
