Permalink
Browse files

Sticking to single quotes for strings.

  • Loading branch information...
1 parent 4b3a372 commit 91b2c0c7107a29236c7b6e3e8b5b9e26f143fdf6 @flebel committed Apr 4, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 yt-redirector.py
View
@@ -15,14 +15,14 @@ def query(query):
tree = ElementTree.parse(xml)
root = tree.getroot()
- entry = root.find("{http://www.w3.org/2005/Atom}entry")
+ entry = root.find('{http://www.w3.org/2005/Atom}entry')
media = entry.find('{http://search.yahoo.com/mrss/}group')
player = media.find('{http://search.yahoo.com/mrss/}player')
player_url = player.attrib['url']
return redirect(player_url, 301)
-if __name__ == "__main__":
+if __name__ == '__main__':
app.run(debug=True)

0 comments on commit 91b2c0c

Please sign in to comment.