<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>LeafLabs Garden &#187; Topic: stm32loader.py, ln:425 syntax error with &#34;-h&#34; command line option and solution.</title>
		<link>http://forums.leaflabs.com/topic.php?id=2357</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:13:41 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://forums.leaflabs.com/search.php</link>
		</textInput>
		<atom:link href="http://forums.leaflabs.com/rss.php?topic=2357" rel="self" type="application/rss+xml" />

		<item>
			<title>mbolivar on "stm32loader.py, ln:425 syntax error with &#34;-h&#34; command line option and solution."</title>
			<link>http://forums.leaflabs.com/topic.php?id=2357#post-12289</link>
			<pubDate>Fri, 10 Aug 2012 16:22:44 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">12289@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Fixed, thanks:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;https://github.com/leaflabs/libmaple/commit/f2aaed8818580663f036bc3d89296f9491310359&#34; rel=&#34;nofollow&#34;&#62;https://github.com/leaflabs/libmaple/commit/f2aaed8818580663f036bc3d89296f9491310359&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Yes, that exception catching syntax is obsolete. Since the new style was backported to Python 2.6, we can use it instead. Let me know if you run into other py3k issues with stm32loader.py.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>shark2600 on "stm32loader.py, ln:425 syntax error with &#34;-h&#34; command line option and solution."</title>
			<link>http://forums.leaflabs.com/topic.php?id=2357#post-12229</link>
			<pubDate>Tue, 07 Aug 2012 12:40:09 +0000</pubDate>
			<dc:creator>shark2600</dc:creator>
			<guid isPermaLink="false">12229@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I'm trying to upload a bootloader to my board with stm32loader.py found from this place, &#60;a href=&#34;https://raw.github.com/leaflabs/libmaple/master/support/stm32loader.py&#34; rel=&#34;nofollow&#34;&#62;https://raw.github.com/leaflabs/libmaple/master/support/stm32loader.py&#60;/a&#62;. The instruction I 'm trying to follow is &#60;a href=&#34;http://leaflabs.com/docs/bootloader.html&#34; rel=&#34;nofollow&#34;&#62;http://leaflabs.com/docs/bootloader.html&#60;/a&#62;.&#60;/p&#62;
&#60;p&#62;My python is 3.2.3, pyserial is 2.6, when I run &#34;python stm32loader.py -h&#34; I got a syntax error from line 425 which is : &#34;except getopt.GetoptError, err:&#34; &#60;/p&#62;
&#60;p&#62;To get it work, I have to change it to &#34;except getopt.GetoptError as err:&#34;. Is this some different between older python and newer python? I hope.&#60;/p&#62;
&#60;p&#62;Just for your information.&#60;/p&#62;
&#60;p&#62;Cheers.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
