...
 
Commits (2)
......@@ -53,3 +53,4 @@ docs/src/en/src/
docs/src/en/include/auto
docs/src/en/platforms/
scripts/build/web/node_modules
README.creole
esmre==0.3.1
esmre==0.3.1;python_version<="2.7"
bitarray==0.8.1
......@@ -15,7 +15,7 @@ jsonschema==2.4.0
pynsq==0.8.3
pyparsing==2.0.3
pyproj==1.9.4
python-creole==0.2.4
python-creole==1.3.2
pytz>=2014.4
python-consul==1.1.0
python-dateutil==2.4.0
......@@ -28,13 +28,13 @@ numpy==1.15.3
tornado==4.5.3
typing==3.7.4.1
requests==2.20.0
supervisor==3.3.1
supervisor==4.1.0
supervisor-serialrestart==0.1.1
cachetools==3.1.1
Pygments==2.2.0
noc-pkg-pyclips==1.0.14
markerlib>=0.6.0
distribute>=0.7.3
distribute>=0.7.3;python_version<="2.7"
PyYAML>=3.11
setproctitle>=1.1.9
ujson-x==1.37
......
......@@ -9,6 +9,7 @@
# Third-party modules
import yaml
from __future__ import print_function
# NOC modules
from noc.main.models.pool import Pool
from noc.config import config
......@@ -47,9 +48,9 @@ def main():
).save()
changed = True
if changed:
print "CHANGED"
print("CHANGED")
else:
print "OK"
print("OK")
if __name__ == "__main__":
......
......@@ -10,6 +10,7 @@
# Python modules
import os
import sys
from __future__ import print_function
# NOC modules
from noc.settings import INSTALLED_APPS
......@@ -48,17 +49,17 @@ class Cleanup(object):
def run(self):
self.cleanup()
if self.errors:
print "ERROR"
print("ERROR")
for e in self.errors:
print e
print(e)
return 1
elif self.changed:
print "CHANGED"
print("CHANGED")
for c in self.changed:
print "Removed %s" % c
print("Removed %s" % c)
return 0
else:
print "OK"
print("OK")
return 0
......
#!./bin/python
# ----------------------------------------------------------------------
# Relink lib/python2.X to lib/python
# Relink lib/pythonX.X to lib/python
# ----------------------------------------------------------------------
# Copyright (C) 2007-2015 The NOC Project
# Copyright (C) 2007-2019 The NOC Project
# See LICENSE for details
# ----------------------------------------------------------------------
......@@ -10,6 +10,7 @@
import os
import shutil
from distutils.sysconfig import get_python_lib
from __future__ import print_function
def main():
......@@ -20,9 +21,9 @@ def main():
os.chdir("lib")
shutil.move(pv, "python")
os.symlink("python", pv)
print "CHANGED"
print("CHANGED")
else:
print "OK"
print("OK")
if __name__ == "__main__":
main()