summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Geisler <martin@geisler.net>2014-05-26 14:35:03 +0200
committerMartin Geisler <martin@geisler.net>2014-05-26 14:35:03 +0200
commita0307347013f6c12d89c0874bd715b31df780bb6 (patch)
treee41d43726c403b85c65bb53306c11ddcd3c9cf30
parentb4d97079b6a74e9a2001b50c66b9eee6bc57ba66 (diff)
downloadpython-swiftclient-a0307347013f6c12d89c0874bd715b31df780bb6.tar.gz
Use Emacs-friendly coding line.
To signal the file encoding to Emacs, one can add a line with -*- coding: your-favority-encoding -*- Python also understands such a line, infact it also understands the line if it says "encoding" instead of "coding". However, it is only "coding" that has an effect in Emacs. Furthermore, since "encoding" is not recognized, Emacs will prompt the user with a scary looking message when the file is opened: The local variable list in __init__.py contains values that may not be safe. Using the correct variable name fixes this. (The file contain only ASCII characters at the moment, so the line could alternatively be removed completely.) Change-Id: Ie6b4f41043bf97bb59e3de403e4794c302d81783
-rw-r--r--swiftclient/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/swiftclient/__init__.py b/swiftclient/__init__.py
index 169d92b..b412f13 100644
--- a/swiftclient/__init__.py
+++ b/swiftclient/__init__.py
@@ -1,4 +1,4 @@
-# -*- encoding: utf-8 -*-
+# -*- coding: utf-8 -*-
# Copyright (c) 2012 Rackspace
# flake8: noqa
# Licensed under the Apache License, Version 2.0 (the "License");