From 62756e4028206b72491b74efd41c181155d5f396 Mon Sep 17 00:00:00 2001 From: Mosky Date: Sat, 5 Oct 2013 14:58:02 +0800 Subject: [PATCH] fixed the layout of code --- _uniout.py | 6 +++++- uniout.py | 3 +-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/_uniout.py b/_uniout.py index c949a3a..b096af4 100644 --- a/_uniout.py +++ b/_uniout.py @@ -1,5 +1,9 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + import re import sys + # the helpers escape_x_re = re.compile(r'(?:\\x[0-9a-f]{2})+') @@ -28,4 +32,4 @@ def dexuescape(s): # modify the write method to de-escape uniout.write = lambda s: sys.__stdout__.write(dexuescape(s)) -__all__ = ['uniout', 'dexuescape' ] +__all__ = ['uniout', 'dexuescape'] diff --git a/uniout.py b/uniout.py index f5bc2e5..e168030 100644 --- a/uniout.py +++ b/uniout.py @@ -1,12 +1,11 @@ #!/usr/bin/env python -# -*- encoding: utf-8 -*- +# -*- coding: utf-8 -*- __version__ = '0.2.2' import sys from _uniout import uniout - def runs_in_ipython(): import __builtin__ return '__IPYTHON__' in __builtin__.__dict__ and \