<p dir="ltr"><br>
On 1 Jul 2013 20:58, "Tobiah" <<a href="mailto:toby@tobiah.org">toby@tobiah.org</a>> wrote:<br>
>><br>
>> Are you familiar with absolute and relative imports:<br>
>> <a href="http://docs.python.org/release/2.5/whatsnew/pep-328.html">http://docs.python.org/release/2.5/whatsnew/pep-328.html</a><br>
><br>
><br>
> Doesn't seem to work:<br>
><br>
> Python 2.7.3 (default, May 10 2012, 13:31:18)<br>
> [GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu4)] on linux2<br>
> Type "help", "copyright", "credits" or "license" for more information.<br>
> >>> from __future__ import absolute_import<br>
> >>> import .format<br>
>   File "<stdin>", line 1<br>
>     import .format<br>
>            ^<br>
> SyntaxError: invalid syntax<br>
> >>></p>
<p dir="ltr">Have you tried </p>
<p dir="ltr">from . import format</p>
<p dir="ltr">?</p>