git://git.onelab.eu
/
nepi.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
netns module can build description factories
[nepi.git]
/
src
/
nepi
/
util
/
guid.py
1
#!/usr/bin/env python
2
# -*- coding: utf-8 -*-
3
4
class GuidGenerator(object):
5
def __init__(self, guid = 0):
6
self._last_guid = guid
7
8
def next(self):
9
self._last_guid += 1
10
return self._last_guid
11