Explicitly specify utf-8 coding in file
authorKarl Hasselström <kha@treskal.com>
Wed, 24 May 2006 06:07:21 +0000 (08:07 +0200)
committerCatalin Marinas <catalin.marinas@gmail.com>
Wed, 24 May 2006 21:01:50 +0000 (22:01 +0100)
uncommit.py has a non-ascii character in it (in my name in the
copyright line). Without this coding: comment, I get an error like the
following when I run stgit:

  /home/kha/git/stgit/stgit/main.py:61: DeprecationWarning: Non-ASCII
  character '\xc3' in file
  /home/kha/git/stgit/stgit/commands/uncommit.py on line 3, but no
  encoding declared; see http://www.python.org/peps/pep-0263.html for
  details

stgit/commands/uncommit.py

index e03d207..52ce5a8 100644 (file)
@@ -1,3 +1,5 @@
+# -*- coding: utf-8 -*-
+
 __copyright__ = """
 Copyright (C) 2006, Karl Hasselström <kha@treskal.com>