python3 setup.py sdist - SyntaxError:语法无效(<pyshell#4>,第1行)</pyshell#4>

时间:2014-04-15 19:35:35

标签: python syntax-error

当我运行&#39; python3 setup.py sdist&#39;在空闲的python shell中我收到错误 SyntaxError:无效语法(,第1行)

我得到了一个类似的问题@ This Question

但我的代码是: 我的setup.py包含:

from distutils.core import setup

setup( name = 'inester', version = '1.0.0', py_modules = ['inester'], author = 'Abhimanyu')

和我的inester.py包含:

import sys


def print_lol(the_list, indent=False, level=0, fh=sys.stdout):
    for each_item in the_list:
        if isinstance(each_item, list):
            print_lol(each_item, indent, level+1, fh)
        else:
            if indent:
                for tab_stop in range(level):
                    print("\t", end='', file=fh)
                print(each_item, file=fh)

0 个答案:

没有答案