Revision: c1a555023a3d
Author: Pekka Klärck
Date: Wed Sep 7 14:33:17 2011
Log: Fixed remote library example.
Update issue 946
Status: Done
I had broken this revision 624b3b41b8d7 as "cleanup" and apparently didn't
run the example afterwards. This stupidity is now fixed. Thanks for the
report!
http://code.google.com/p/robotframework/source/detail?r=c1a555023a3d
Modified:
/tools/remoteserver/example/examplelibrary.py
=======================================
--- /tools/remoteserver/example/examplelibrary.py Thu May 26 14:06:43 2011
+++ /tools/remoteserver/example/examplelibrary.py Wed Sep 7 14:33:17 2011
@@ -7,7 +7,7 @@
class ExampleRemoteLibrary:
def count_items_in_directory(self, path):
- return len(i for i in os.listdir(path) if not i.startswith('.'))
+ return len([i for i in os.listdir(path) if not i.startswith('.')])
def strings_should_be_equal(self, str1, str2):
print "Comparing '%s' to '%s'" % (str1, str2)