資源簡介
解決org.apache.hadoop.io.nativeio.NativeIO$Windows.access0(Ljava/lang/String;I)Z問題
代碼片段和文件信息
#!/usr/bin/python
#???Licensed?under?the?Apache?License?Version?2.0?(the?“License“);
#???you?may?not?use?this?file?except?in?compliance?with?the?License.
#???You?may?obtain?a?copy?of?the?License?at
#
#???????http://www.apache.org/licenses/LICENSE-2.0
#
#???Unless?required?by?applicable?law?or?agreed?to?in?writing?software
#???distributed?under?the?License?is?distributed?on?an?“AS?IS“?BASIS
#???WITHOUT?WARRANTIES?OR?CONDITIONS?OF?ANY?KIND?either?express?or?implied.
#???See?the?License?for?the?specific?language?governing?permissions?and
#???limitations?under?the?License.
import?re
import?sys
from?optparse?import?OptionParser
import?httplib
import?urllib
import?cgi
try:
??import?json
except?ImportError:
??import?simplejson?as?json
namePattern?=?re.compile(r‘?\([0-9]+\)‘)
def?clean(str):
??return?quoteHtml(re.sub(namePattern?““?str))
def?formatComponents(str):
??str?=?re.sub(namePattern?‘‘?str).replace(“‘“?““)
??if?str?!=?““:
????ret?=?“(“?+?str?+?“)“
??else:
????ret?=?““
??return?quoteHtml(ret)
????
def?quoteHtml(str):
??return?cgi.escape(str).encode(‘a(chǎn)scii‘?‘xmlcharrefreplace‘)
def?mstr(obj):
??if?(obj?==?None):
????return?““
??return?unicode(obj)
class?Version:
??“““Represents?a?version?number“““
??def?__init__(self?data):
????self.mod?=?False
????self.data?=?data
????found?=?re.match(‘^((\d+)(\.\d+)*).*$‘?data)
????if?(found):
??????self.parts?=?[?int(p)?for?p?in?found.group(1).split(‘.‘)?]
????else:
??????self.parts?=?[]
????#?backfill?version?with?zeroes?if?missing?parts
????self.parts.extend((0)?*?(3?-?len(self.parts)))
??def?decBugFix(self):
????self.mod?=?True
????self.parts[2]?-=?1
????return?self
??def?__str__(self):
????if?(self.mod):
??????return?‘.‘.join([?str(p)?for?p?in?self.parts?])
????return?self.data
??def?__cmp__(self?other):
????return?cmp(self.parts?other.parts)
class?Jira:
??“““A?single?JIRA“““
??def?__init__(self?data?parent):
????self.key?=?data[‘key‘]
????self.fields?=?data[‘fields‘]
????self.parent?=?parent
????self.notes?=?None
??def?getId(self):
????return?mstr(self.key)
??def?getDescription(self):
????return?mstr(self.fields[‘description‘])
??def?getReleaseNote(self):
????if?(self.notes?==?None):
??????field?=?self.parent.fieldIdMap[‘Release?Note‘]
??????if?(self.fields.has_key(field)):
????????self.notes=mstr(self.fields[field])
??????else:
????????self.notes=self.getDescription()
????return?self.notes
??def?getPriority(self):
????ret?=?““
????pri?=?self.fields[‘priority‘]
????if(pri?!=?None):
??????ret?=?pri[‘name‘]
????return?mstr(ret)
??def?getAssignee(self):
????ret?=?““
????mid?=?self.fields[‘a(chǎn)ssignee‘]
????if(mid?!=?None):
??????ret?=?mid[‘displayName‘]
????return?mstr(ret)
??def?getComponents(self):
????return?“??“.join([?comp[‘name‘]?for?comp?in?self.fields[‘components‘]?])
??def?getSummary(self):
????return?self.fields[‘summary‘]
??def?getType(self):
????ret?=?““
????mid?=?self.fields[‘issuetype‘]
????if(mid?!=?None):
??????ret?=?mid[‘name‘]
????return?mstr(ret)
??def?get
- 上一篇:Xamarin自動破解工具
- 下一篇:多開分身_9破解.apk
評論
共有 條評論