From 69af6df69db766464b3cf3026603c5749550fa4a Mon Sep 17 00:00:00 2001 From: Soonho Kong Date: Wed, 21 Jan 2015 17:31:26 -0500 Subject: [PATCH] refactor(bin/python_lib): move six.py under bin/python_lib Following @favonia's suggestion in #393 --- bin/.gitignore | 3 ++- bin/linja | 6 +++--- bin/python_lib/__init__.py | 0 bin/{ => python_lib}/six.py | 0 4 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 bin/python_lib/__init__.py rename bin/{ => python_lib}/six.py (100%) diff --git a/bin/.gitignore b/bin/.gitignore index 37956bfcb..5b9b1653d 100644 --- a/bin/.gitignore +++ b/bin/.gitignore @@ -1,3 +1,4 @@ lean lean.exe -six.pyc +python_lib/six.pyc +python_lib/__init__.pyc diff --git a/bin/linja b/bin/linja index 2409b8721..b087827cf 100755 --- a/bin/linja +++ b/bin/linja @@ -9,8 +9,8 @@ # Python 2/3 compatibility from __future__ import print_function -import six -from six.moves import filter, map +import python_lib.six as six +from python_lib.six.moves import filter, map import argparse import fnmatch @@ -25,7 +25,7 @@ import subprocess import sys import tempfile import threading -from six.moves import urllib +from python_lib.six.moves import urllib # Enforce subprocesses to use 'utf-8' in Python 2 if six.PY2: diff --git a/bin/python_lib/__init__.py b/bin/python_lib/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/bin/six.py b/bin/python_lib/six.py similarity index 100% rename from bin/six.py rename to bin/python_lib/six.py