File: 10-import-pypcap.patch

package info (click to toggle)
python-pcs 0.5%2Bdebian-2
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 676 kB
  • ctags: 648
  • sloc: python: 2,528; makefile: 63
file content (16 lines) | stat: -rw-r--r-- 552 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
From: Robert S. Edmonds <edmonds@debian.org>
Subject: fake the pcs.pcap namespace

diff -urNad python-pcs-0.5+debian~/pcs/__init__.py python-pcs-0.5+debian/pcs/__init__.py
--- python-pcs-0.5+debian~/pcs/__init__.py	2007-08-08 23:47:52.000000000 -0400
+++ python-pcs-0.5+debian/pcs/__init__.py	2007-08-14 22:12:14.000000000 -0400
@@ -65,7 +65,8 @@
 # We need the socket module for to implement some of the Connector classes.
 from socket import *
 
-import pcs.pcap as pcap
+import pcap
+import sys; sys.modules['pcs.pcap'] = pcap
 
 import itertools