Modify

Ticket #148 (new defect)

Opened 4 years ago

relative imports required for inter-package imports

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

Description

I ran into a case where the line

from parser import *

in loader.py referenced an external module. Such imports really should be relative:

from .parser import *

This is especially important in view of [PEP328  http://www.python.org/dev/peps/pep-0328/] since absolute imports are being phased out.

Attachments

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will be changed from xi. Next status will be 'new'
The owner will be changed from xi to anonymous. Next status will be 'assigned'
Author


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

 
Note: See TracTickets for help on using tickets.