?¡ëPNG
IHDR ? f ??C1 sRGB ??¨¦ gAMA ¡À?¨¹a pHYs ? ??o¡§d GIDATx^¨ª¨¹L¡±¡Âe¡ÂY?a?("Bh?_¨°???¡é¡ì?q5k?*:t0A-o??£¤]VkJ¡éM??f?¡À8\k2¨ªll¡ê1]q?¨´???T
Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/user1137782/www/china1.by/classwithtostring.php on line 86
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 213
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 214
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 215
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 216
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 217
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 218
""" A pure Python Queue implementation modelled after mxQueue.
Copyright (c) 2000, Marc-Andre Lemburg; mailto:mal@lemburg.com
Copyright (c) 2000-2008, eGenix.com Software GmbH; mailto:info@egenix.com
See the documentation for further information on copyrights,
or contact the author. All Rights Reserved.
"""
__version__ = '0.1'
class UserQueue:
def __init__(self):
self.queue = []
self.headindex = 0
def push(self,x):
self.queue.append(x)
def pop(self):
headindex = self.headindex
queue = self.queue
x = queue[headindex]
queue[headindex] = None # del. reference
headindex = headindex + 1
if headindex > 100 and headindex > len(queue) / 2:
# compactify
self.queue = self.queue[headindex:]
self.headindex = 0
else:
self.headindex = headindex
return x
def not_empty(self):
return self.headindex != len(self.queue)
def head(self):
return self.queue[self.headindex]
def tail(self):
return self.queue[-1]
def __len__(self):
return len(self.queue) - self.headindex
def __repr__(self):
l = self.queue[self.headindex:]
l.reverse()
return '' % repr(l)[1:-1]
def __str__(self):
l = self.queue[self.headindex:]
l.reverse()
return 'q' + repr(l)