Skip to content

Commit d68d53e

Browse files
author
Thinh Nguyen
committed
minor code cleanup
1 parent 0ffc885 commit d68d53e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from setuptools import setup, find_packages
22
from os import path
33

4-
pkg_name = [p for p in find_packages() if '.' not in p][0]
4+
pkg_name = next(p for p in find_packages() if '.' not in p)
55
here = path.abspath(path.dirname(__file__))
66

77
with open(path.join(here, 'README.md'), 'r') as f:

0 commit comments

Comments
 (0)