minor changes

This commit is contained in:
Chiel92 2013-03-16 14:19:04 +01:00
parent e3d62f1ac8
commit bbb75528ac
2 changed files with 2 additions and 7 deletions

View File

@ -92,7 +92,6 @@ Change log
---------- ----------
### March 9 2013 ### March 9 2013
The `custom_config` branch has been merged into the master branch. The `custom_config` branch has been merged into the master branch.
* Customization of formatprograms can be done easily now, as explained above. * Customization of formatprograms can be done easily now, as explained above.
* I set the default tabwidth to 4 for all formatprograms as well as for vim itself. * I set the default tabwidth to 4 for all formatprograms as well as for vim itself.
* The default parameters for astyle have been slightly modified: it will wrap spaces around operators. * The default parameters for astyle have been slightly modified: it will wrap spaces around operators.
@ -107,8 +106,6 @@ The `custom_config` branch has been merged into the master branch.
### March 16 2013 ### March 16 2013
The `dynamic_indent_width` branch has been merged into the master branch. The `dynamic_indent_width` branch has been merged into the master branch.
* The options `expandtab`, `shiftwidth`, `tabstop` and `softtabstop` are not overwritten anymore. * The options `expandtab`, `shiftwidth`, `tabstop` and `softtabstop` are not overwritten anymore.
* This obsoletes `g:autoformat_no_default_shiftwidth` * This obsoletes `g:autoformat_no_default_shiftwidth`
* `g:formatprg_args_expr_<filetype>` is introduced. * `g:formatprg_args_expr_<filetype>` is introduced.
* For the default formatprogram definitions, the options `expandtab` and `shiftwidth` are taken into account whenever possible.

View File

@ -16,7 +16,7 @@ try:
class Canceled(Exception): class Canceled(Exception):
"Exception used to cancel run()." "Exception used to cancel run()."
except (NameError,TypeError): except (NameError,TypeError):
Canceled=__name__ + ".Canceled" Canceled=__name__+".Canceled"
class SuckerThread(websucker.Sucker): class SuckerThread(websucker.Sucker):
stopit=0 stopit=0
savedir=None savedir=None
@ -25,9 +25,7 @@ class SuckerThread(websucker.Sucker):
self.msgq=msgq self.msgq=msgq
websucker.Sucker.__init__(self) websucker.Sucker.__init__(self)
self.setflags(verbose=VERBOSE) self.setflags(verbose=VERBOSE)
self.urlopener.addheaders=[ self.urlopener.addheaders=[('User-agent','websucker/%s'%websucker.__version__),]
('User-agent','websucker/%s' % websucker.__version__),
]
def message(self,format,*args): def message(self,format,*args):
if args: if args:
format=format%args format=format%args