IceArmy
8ade9f43a4
Fixed some small obscure bugs, clean up the code, and renamed unused variables to _
2011-12-11 21:37:33 -08:00
IceArmy
3ea50c443f
Minimize down the with statements that use QPyFile
2011-10-17 22:44:19 -07:00
IceArmy
698c2619a8
Remove extra spaces in license
2011-09-23 04:40:56 -07:00
IceArmy
06e8a6dd3b
Improve QPyFile implementation
...
- Now supports Python style open mode flags
- Wrappers have been placed around methods which require/return foreign data types
2011-09-18 15:52:29 -07:00
IceArmy
c506f3efe4
Fix bug where resource text didn't actually return the text.
...
Converted all the .data() back into str()
Made NetworkReplyProxy body() return str()
2011-09-15 17:39:02 -07:00
IceArmy
826ab347e4
Refactoring on the module implementation.
...
Also implemented a new QPyFile class which is a wrapper
over QFile, supporting context managers. It greatly
improves code readability and reusability.
http://code.google.com/p/phantomjs/issues/detail?id=47
2011-09-13 14:45:28 -07:00
IceArmy
febf9a14f6
Use super() for all class initializers instead
2011-09-12 22:27:04 -07:00
IceArmy
de2dc7b861
Stop unsafe QByteArray conversions using str()
2011-09-07 05:00:26 -07:00
IceArmy
5e069ee711
Misc improvements
...
Changed all if not's/if's for None's to if value is None/if value is not None
Fix bug in fs where split never used os.altsep because if not always evaluated to False since there's almost always something in the list returned
Fix the fixme on fs.isAbsolute where we needed to split the Windows drive letter off
2011-08-24 14:32:29 -07:00
IceArmy
e6a644e3da
Improve the Singleton implementation of CSConverter
2011-08-23 16:19:58 -07:00
IceArmy
5bee668c2f
Make CSConverter instance part of CSConverter class
2011-08-21 14:51:05 -07:00
IceArmy
7cbd75a400
Make the parents the first argument (since we will always supply the arg, and also for cleanliness and order)
2011-08-18 14:23:58 -07:00
IceArmy
7a9e0c8599
Exit on start script error
2011-06-19 13:37:03 -07:00
IceArmy
9a85d01687
Add newline to CSConverter.convert
2011-06-19 01:23:44 -07:00
IceArmy
9ed0c2951e
On Coffee convert error, just warn and return nothing.
...
The reason for this is for consistencies sake. When we have a JavaScript
evaluation error, it shows the error, but doesn't exit the program.
Since we can inject CoffeeScripts as well as JS, it wouldn't be
consistent to exit the program. So we just warn instead.
2011-06-16 21:30:10 -07:00
IceArmy
e52ed4a54a
Report CoffeeScript compile errors
2011-06-16 17:28:36 -07:00
IceArmy
a83d98b654
When sys.exit'ing, don't bother using qCritical, but just sys.exit with the message instead
2011-06-12 01:20:53 -07:00
Francisco Souza
9b12ce3f89
Changed the name of package from phantom to pyphantomjs
2011-06-05 19:55:07 -03:00