Skip to content

Commit

Permalink
fixed the layout of code
Browse files Browse the repository at this point in the history
  • Loading branch information
moskytw committed Oct 5, 2013
1 parent 369d6a7 commit 62756e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 5 additions & 1 deletion _uniout.py
Original file line number Diff line number Diff line change
@@ -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})+')
Expand Down Expand Up @@ -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']
3 changes: 1 addition & 2 deletions uniout.py
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down

0 comments on commit 62756e4

Please sign in to comment.