mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-22 09:36:48 +03:00
Removing unnecessary nl
This commit is contained in:
parent
f64d155154
commit
48ff686ae8
|
@ -45,7 +45,6 @@ from objects.providers import Singleton
|
||||||
|
|
||||||
# NewInstance provider will create new instance of specified class
|
# NewInstance provider will create new instance of specified class
|
||||||
# on every call.
|
# on every call.
|
||||||
|
|
||||||
new_object = NewInstance(object)
|
new_object = NewInstance(object)
|
||||||
|
|
||||||
object_1 = new_object()
|
object_1 = new_object()
|
||||||
|
@ -55,7 +54,6 @@ assert object_1 is not object_2
|
||||||
|
|
||||||
# Singleton provider will create new instance of specified class on first call,
|
# Singleton provider will create new instance of specified class on first call,
|
||||||
# and return same instance on every next call.
|
# and return same instance on every next call.
|
||||||
|
|
||||||
single_object = Singleton(object)
|
single_object = Singleton(object)
|
||||||
|
|
||||||
single_object_1 = single_object()
|
single_object_1 = single_object()
|
||||||
|
|
|
@ -6,7 +6,6 @@ from objects.providers import Singleton
|
||||||
|
|
||||||
# NewInstance provider will create new instance of specified class
|
# NewInstance provider will create new instance of specified class
|
||||||
# on every call.
|
# on every call.
|
||||||
|
|
||||||
new_object = NewInstance(object)
|
new_object = NewInstance(object)
|
||||||
|
|
||||||
object_1 = new_object()
|
object_1 = new_object()
|
||||||
|
@ -16,7 +15,6 @@ assert object_1 is not object_2
|
||||||
|
|
||||||
# Singleton provider will create new instance of specified class on first call,
|
# Singleton provider will create new instance of specified class on first call,
|
||||||
# and return same instance on every next call.
|
# and return same instance on every next call.
|
||||||
|
|
||||||
single_object = Singleton(object)
|
single_object = Singleton(object)
|
||||||
|
|
||||||
single_object_1 = single_object()
|
single_object_1 = single_object()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user