Unreviewed fix.
authorukai@chromium.org <ukai@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Apr 2010 04:32:50 +0000 (04:32 +0000)
committerukai@chromium.org <ukai@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Apr 2010 04:32:50 +0000 (04:32 +0000)
* Scripts/webkitpy/layout_tests/port/websocket_server.py: fix NameError: global name 'f' is not defined.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@58147 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKitTools/ChangeLog
WebKitTools/Scripts/webkitpy/layout_tests/port/websocket_server.py

index e81e615..d297b83 100644 (file)
@@ -1,3 +1,9 @@
+2010-04-22  Fumitoshi Ukai  <ukai@chromium.org>
+
+        Unreviewed fix.
+
+        * Scripts/webkitpy/layout_tests/port/websocket_server.py: fix NameError: global name 'f' is not defined.
+
 2010-04-22  James Robinson  <jamesr@chromium.org>
 
         Reviewed by Adam Barth.
index a9eab5e..ed6d871 100644 (file)
@@ -246,7 +246,7 @@ class PyWebSocket(http_server.Lighttpd):
             pid = self._process.pid
         elif self._pidfile:
             with codecs.open(self._pidfile, "r", "ascii") as file:
-                pid = int(f.read().strip())
+                pid = int(file.read().strip())
 
         if not pid:
             raise PyWebSocketNotFound(