Browse Source

Update hacking version

update the hacking to latest, due to[1]

[1]: https://github.com/openstack/oslo.privsep/blob/master/HACKING.rst

Change-Id: I760d81aa7b19c8df15bf9f187de8ea4945579a9c
Closes-Bug: #1815714
ZhijunWei 3 months ago
parent
commit
b033c2f346
2 changed files with 7 additions and 8 deletions
  1. 6
    7
      oslo_privsep/daemon.py
  2. 1
    1
      test-requirements.txt

+ 6
- 7
oslo_privsep/daemon.py View File

@@ -12,7 +12,7 @@
12 12
 #    License for the specific language governing permissions and limitations
13 13
 #    under the License.
14 14
 
15
-'''Privilege separation ("privsep") daemon.
15
+"""Privilege separation ("privsep") daemon.
16 16
 
17 17
 To ease transition this supports 2 alternative methods of starting the
18 18
 daemon, all resulting in a helper process running with elevated
@@ -41,7 +41,7 @@ privileges and open socket(s) to the original process:
41 41
 The privsep daemon exits when the communication channel is closed,
42 42
 (which usually occurs when the unprivileged process exits).
43 43
 
44
-'''
44
+"""
45 45
 
46 46
 from concurrent import futures
47 47
 import enum
@@ -56,11 +56,6 @@ import sys
56 56
 import tempfile
57 57
 import threading
58 58
 
59
-if platform.system() == 'Linux':
60
-    import fcntl
61
-    import grp
62
-    import pwd
63
-
64 59
 import eventlet
65 60
 from oslo_config import cfg
66 61
 from oslo_log import log as logging
@@ -71,6 +66,10 @@ from oslo_privsep._i18n import _
71 66
 from oslo_privsep import capabilities
72 67
 from oslo_privsep import comm
73 68
 
69
+if platform.system() == 'Linux':
70
+    import fcntl
71
+    import grp
72
+    import pwd
74 73
 
75 74
 LOG = logging.getLogger(__name__)
76 75
 

+ 1
- 1
test-requirements.txt View File

@@ -2,7 +2,7 @@
2 2
 # of appearance. Changing the order has an impact on the overall integration
3 3
 # process, which may cause wedges in the gate later.
4 4
 
5
-hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
5
+hacking>=1.1.0,<1.2.0 # Apache-2.0
6 6
 oslotest>=3.2.0 # Apache-2.0
7 7
 mock>=2.0.0 # BSD
8 8
 fixtures>=3.0.0 # Apache-2.0/BSD

Loading…
Cancel
Save