On Wed, Aug 3, 2011 at 8:07 AM, Richard D. Moores <span dir="ltr">&lt;<a href="mailto:rdmoores@gmail.com">rdmoores@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">On Tue, Aug 2, 2011 at 21:59, Dave Angel &lt;<a href="mailto:d@davea.name">d@davea.name</a>&gt; wrote:<br>
<br>
&gt; When I paste that from your email into a file and run Python 2.7 on it, it<br>
&gt; behaves fine with no errors.  That&#39;s in Linux.<br>
<br>
</div>I should have said that I&#39;m using Wing IDE Professional 4.0.3-1 (rev<br>
24721), Windows Vista, and Python 3.2.1.<br>
<div class="im"><br>
&gt; But the easiest explanation is that you perhaps used a funny character for<br>
&gt; your triple-quotes.  And when you retyped them on a new line, you typed<br>
&gt; regular ones.<br>
&gt;<br>
&gt; For example, I&#39;ve seen that sort of thing when someone wrote code in a<br>
&gt; Windows word processor that had &quot;smart quotes.&quot;<br>
<br>
</div>No, no funny characters with Wing.<br>
<br>
Thanks for your guess, Dave.<br>
<br>
But here&#39;s a try using the regular command line:<br>
<br>
C:\Windows\System32&gt;python<br>
Python 3.2.1 (default, Jul 10 2011, 20:02:51) [MSC v.1500 64 bit<br>
(AMD64)] on win32<br>
Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.<br>
<div class="im">&gt;&gt;&gt; from mycalc import convertPath<br>
Traceback (most recent call last):<br>
</div>  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;<br>
  File &quot;C:\Python32\lib\site-packages\mycalc.py&quot;, line 36<br>
    &quot;&quot;&quot;<br>
SyntaxError: (unicode error) &#39;unicodeescape&#39; codec can&#39;t decode bytes<br>
in position 149-151: truncated \UXXXXXXX<br>
X escape<br>
&gt;&gt;&gt;<br></blockquote><div><br>That says that there is some character in that line that is not valid Unicode. Remove the line (and perhaps the ones above and below it at the same time, in case it&#39;s around the line feed character(s)) and type it in again. It&#39;s likely to be as easy as that.<br>

 </div></div>-- <br>André Engels, <a href="mailto:andreengels@gmail.com">andreengels@gmail.com</a><br><br>