[gnome-builder] snippets/python: add coding snippets to easy set encoding



commit 327bb6994c26aa203adc7156820d5d14bdef518b
Author: Igor Gnatenko <ignatenko src gnome org>
Date:   Sat Jan 10 22:59:28 2015 +0300

    snippets/python: add coding snippets to easy set encoding
    
    Signed-off-by: Igor Gnatenko <ignatenko src gnome org>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=742725

 src/resources/snippets/python.snippets |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/resources/snippets/python.snippets b/src/resources/snippets/python.snippets
index 3ad5ccb..821d6d0 100644
--- a/src/resources/snippets/python.snippets
+++ b/src/resources/snippets/python.snippets
@@ -2,6 +2,11 @@ snippet python
 - scope python, python3
        #!/usr/bin/env python
        $0
+snippet coding
+- scope python, python3
+- desc Set document encoding
+       # -*- coding: ${1:utf-8} -*-
+       $0
 snippet import
 - scope python, python3
        import $0


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]