<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>a2c</author_name>
  <author_url>https://blog.hatena.ne.jp/a2c/</author_url>
  <blog_title>When it’s ready.</blog_title>
  <blog_url>https://a2c.hatenablog.com/</blog_url>
  <categories>
    <anon>python</anon>
  </categories>
  <description>Python2.6だと import urllib2 def hoget(): try: result = urllib2.urlopen(req_url, timeout=5) return result.read() except urllib2.URLError, e: print e で仕込めるらしいが、Python2.4.3だと使えない。（いまさら2.4なのが痛いが）で、2.4だとどうすればいいのか分かったのでメモ import urllib2 import socket socket.setdefaulttimeout(5) def hoget(): try: result = u…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fa2c.hatenablog.com%2Fentry%2F20110718%2F1310988756&quot; title=&quot;オールドPython2.4.xでのtimeoutの仕込み方 - When it’s ready.&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-07-18 20:32:36</published>
  <title>オールドPython2.4.xでのtimeoutの仕込み方</title>
  <type>rich</type>
  <url>https://a2c.hatenablog.com/entry/20110718/1310988756</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
