Modify

Ticket #118 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

Strange case where yaml.load should error but actually loads

Reported by: xi Owned by: xi
Priority: normal Component: pyyaml
Severity: normal Keywords:
Cc:

Description

>>> yaml.load('-\n-3')
[-3]

Adding a newline actually does produce the desired error:

>>> yaml.load('-\n-3\n')
...
yaml.scanner.ScannerError: while scanning a simple key
  in "<string>", line 2, column 1:
    -3
    ^
could not found expected ':'
  in "<string>", line 3, column 1:
    
    ^

Attachments

Change History

comment:1 Changed 5 years ago by xi

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in [354].

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.