Skip to content

Commit

Permalink
Whitespace cleanup
Browse files Browse the repository at this point in the history
Added .dir-locals.el to tell emacs to automatically clean-up trailing
whitespace on save.

--HG--
extra : histedit_source : 5b45c779f44cf4b4a040dc656762e1b76344cc77%2Cbcc64c5bcf4d2f7698424ffe374d34d58e4ff65a
  • Loading branch information
Nikratio committed Feb 3, 2015
1 parent 5cec662 commit fb78530
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .dir-locals.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
;; This tells Emacs to automatically run whitespace-cleanup when
;; editing any file in the S3QL source tree.
((nil . ((eval . (add-hook 'before-save-hook 'whitespace-cleanup nil t)))))
2 changes: 1 addition & 1 deletion rst/backends.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ options are documented with the respective backends below.

All storage backends respect the :envvar:`!http_proxy` (for plain HTTP
connections) and :envvar:`!https_proxy` (for SSL connections)
environment variables.
environment variables.


Google Storage
Expand Down
2 changes: 1 addition & 1 deletion src/s3ql/adm.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def main(args=None):

if options.action == 'upgrade':
return upgrade(options)

with get_backend(options) as backend:
if options.action == 'passphrase':
return change_passphrase(backend)
Expand Down
2 changes: 1 addition & 1 deletion src/s3ql/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ def split_by_n(seq, n):
while seq:
yield seq[:n]
seq = seq[n:]

def handle_on_return(fn):
'''Provide fresh ExitStack instance in `on_return` argument'''
@functools.wraps(fn)
Expand Down

0 comments on commit fb78530

Please sign in to comment.