Skip to content

Commit aa1b9cb

Browse files
author
peakwinter
committed
bugfix
1 parent 58828e5 commit aa1b9cb

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

nginx/main.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ def add(self, *args):
1414
return self.blocks
1515

1616
def remove(self, *args):
17-
self.blocks.remove(*args)
17+
for x in args:
18+
self.blocks.remove(x)
1819
self.upd()
1920
return self.blocks
2021

@@ -71,7 +72,8 @@ def add(self, *args):
7172
return self.blocks
7273

7374
def remove(self, *args):
74-
self.blocks.remove(*args)
75+
for x in args:
76+
self.blocks.remove(x)
7577
self.upd()
7678
return self.blocks
7779

@@ -137,7 +139,8 @@ def add(self, *args):
137139
return self.blocks
138140

139141
def remove(self, *args):
140-
self.blocks.remove(*args)
142+
for x in args:
143+
self.blocks.remove(x)
141144
self.upd()
142145
return self.blocks
143146

setup.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,16 @@
77
version='0.1',
88
description='Create and modify nginx serverblock configs in Python',
99
author='Jacob Cook',
10-
author_email='jacob@jcook.cc',
11-
url='https://jcook.cc',
12-
packages=['nginx']
10+
author_email='jacob@peakwinter.net',
11+
url='https://github.com/peakwinter/python-nginx',
12+
packages=['nginx'],
13+
keywords = ['nginx', 'web servers', 'serverblock', 'server block'],
14+
download_url = 'https://github.com/peakwinter/python-nginx/archive/0.1.tar.gz',
15+
license = 'GPLv3',
16+
classifiers = [
17+
"Development Status :: 3 - Alpha",
18+
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
19+
"Operating System :: Unix",
20+
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
21+
]
1322
)

0 commit comments

Comments
 (0)