search for: endswith

Displaying 15 results from an estimated 15 matches for "endswith".

2014 Jul 09
5
[LLVMdev] [PATCH][REQUEST] Could someone submit this CSR Kalimba definitions patch please?
...:NVIDIA) + .Case("csr", Triple::CSR) .Default(Triple::UnknownVendor); } @@ -350,26 +356,6 @@ .Default(Triple::UnknownObjectFormat); } -static Triple::SubArchType parseSubArch(StringRef SubArchName) { - return StringSwitch<Triple::SubArchType>(SubArchName) - .EndsWith("v8", Triple::ARMSubArch_v8) - .EndsWith("v8a", Triple::ARMSubArch_v8) - .EndsWith("v7", Triple::ARMSubArch_v7) - .EndsWith("v7a", Triple::ARMSubArch_v7) - .EndsWith("v7em", Triple::ARMSubArch_v7em) - .EndsWith("v7m", Triple...
2010 Jan 26
1
samba4 HEAD: unable to provision
...ba/provision.py", line 471, in make_smbconf posixeadb_line = "posix:eadb = " + os.path.abspath(os.path.join(os.path.join(targetdir, "private"),"eadb.tdb")) File "/usr/lib/python2.5/posixpath.py", line 62, in join elif path == '' or path.endswith('/'): AttributeError: 'NoneType' object has no attribute 'endswith' What does it mean? What I did wrong? Just for the records, what is eadb? Is related to extended filesystem attributest? Server filesystem is xfs, so xattr is supported. Thank you for your help, Francesc...
2013 Jul 16
0
[LLVMdev] [PATCH 2/2] X86: infer immediate forms of bit-test instructions
...gRef Name, SMLoc NameLoc, } } + // Infer the immediate form of bit-test instructions without length suffix + // correctly. The register form works fine. + // bt{,r,s,..} $n, mem becomes btl $(n % 32), (mem + 4 * (n / 32)) + if (Name.startswith("bt") + && !(Name.endswith("b") || Name.endswith("w") || Name.endswith("l") || Name.endswith("q")) + && Operands.size() == 3) { + X86Operand &Op1 = *(X86Operand*)Operands.begin()[1]; + X86Operand &Op2 = *(X86Operand*)Operands.begin()[2]; + + if (Op1.isImm(...
2009 Sep 17
1
RFC: edit-livecd.py
This script replaces the existing script in ovirt-node-image to edit live cds. I am Looking for comments/feedback before I send to livecd-list for possible inclusion into Livecd-tools. -D -------------- next part -------------- A non-text attachment was scrubbed... Name: edit-livecd.py Type: text/x-python Size: 11863 bytes Desc: not available URL:
2014 Mar 02
0
3/2/2014 Samba4 git pull make clean error
...mba.py", line 762, in INSTALL_FILES base_name=base_name) File "./buildtools/wafsamba/wafsamba.py", line 738, in install_file dest = os.path.join(destdir, destname) File "/usr/local/lib/python2.7/posixpath.py", line 77, in join elif path == '' or path.endswith('/'): AttributeError: 'list' object has no attribute 'endswith' gmake: *** [clean] Error 1 I just re-compile python27. I did not find problem. What it is wrong? uname -a FreeBSD www.pccom.ca 10.0-RELEASE FreeBSD 10.0-RELEASE #4 r261534M: Wed Feb 5 23:39:30 EST 2014...
2011 Aug 03
0
[PATCH] display ipv6 address in networking details page, also fix ipv6 netmask configurations.
...==\"inet6\" && $4==\"global\" { print $2 }'" % interface inet6_lookup = subprocess.Popen(inet6_lookup_cmd, shell=True, stdout=PIPE, stderr=STDOUT) - ipv6_addr = inet6_lookup.stdout.read() - - if "/" in ipv6_addr: - while not ipv6_addr.endswith("/"): - ipv6_addr = ipv6_addr[:-1] - ipv6_addr = ipv6_addr.strip("/") - return ipv6_addr - + ipv6_addr = inet6_lookup.stdout.read().strip() + try: + ip, netmask = ipv6_addr.split("/") + return (ip,netmask) + except: +...
2011 Jul 20
0
[PATCH] fix ipv4 static/dhcp/disabled networking changes
...log("\nAborting...\n") return False - for file in os.listdir(self.WORKDIR): - os.system("rm -rf %s/%s") % (self.WORKDIR, file) + if OVIRT_VARS.has_key("OVIRT_BOOTIF"): + if OVIRT_VARS["OVIRT_BOOTIF"].endswith("-DISABLED"): + self.disabled_nic = 1 + self.CONFIGURED_NIC = OVIRT_VARS["OVIRT_BOOTIF"].strip("-DISABLED") + n_address = open("/sys/class/net/" + self.CONFIGURED_NIC + "/address") nic_hwaddr = n_address.r...
2014 Feb 13
2
[LLVMdev] Bad test health
...ename) as f: curr_runline = '' for line in f.readlines(): match = self.prefix_re.search(line) if not match: continue prefix = match.group(1) or match.group(2) rest = match.group(3) if prefix == 'RUN': if rest.endswith("\\"): curr_runline += rest[:-1] elif len(curr_runline) > 0: runlines.append(curr_runline + rest) curr_runline = '' else: runlines.append(line) elif not self.is_prefix(prefix): pass el...
2011 Aug 03
1
[PATCH] display ipv6 address in networking details page, also fix ipv6 netmask configurations
...39;ifconfig ' + interface + ' |grep inet6|grep Global|awk {\'print $3\'}' inet6_lookup = subprocess.Popen(inet6_lookup_cmd, shell=True, stdout=PIPE, stderr=STDOUT) ipv6_addr = inet6_lookup.stdout.read() - - if "/" in ipv6_addr: - while not ipv6_addr.endswith("/"): - ipv6_addr = ipv6_addr[:-1] - ipv6_addr = ipv6_addr.strip("/") - return ipv6_addr - + try: + ip, netmask = ipv6_addr.split("/") + return (ip,netmask) + except: + log("unable to determine ip/netmask from: &...
2014 Sep 15
2
[LLVMdev] How to translate library functions into LLVM IR bitcode?
Good tips. Although I have used llvm-link to merge .bc files together, I guess -flto could optimize the resultant .bc file further. As for the assembly, yes it is an issue. Anyway, I'll try to address those sources which are available for being translated into .bc first. Thanks for your advice, Tim. On Mon, Sep 15, 2014 at 2:55 PM, Tim Northover <t.p.northover at gmail.com> wrote:
2016 May 04
9
[PATCH 0/8] python: PEP 8 fixes
Hi, this series cleans up the Python sources, either static or generated, including also tests, to make them PEP 8 compliant; see https://www.python.org/dev/peps/pep-0008/ and tools like pep8. Almost all the issues reported by pep8 are fixed, reducing the issues from 3818 to 7. The changes should have no effect on the actual code, while it will help Python users with consistency with other
2010 Jun 21
2
[LLVMdev] MC: Object file specific parsing
....Default(~0U); if (SSEComparisonCode != ~0U) { - ExtraImmOp = MCConstantExpr::Create(SSEComparisonCode, - getParser().getContext()); + ExtraImmOp = MCConstantExpr::Create(SSEComparisonCode, Parser->getContext()); if (PatchedName.endswith("ss")) { PatchedName = "cmpss"; } else if (PatchedName.endswith("sd")) { @@ -698,13 +759,13 @@ ParseInstruction(const StringRef &Name, SMLoc NameLoc, if (ExtraImmOp) Operands.push_back(X86Operand::CreateImm(ExtraImmOp, NameLoc, NameLoc));...
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...turn nv == v; }, '!=': function(nv, v) { return nv != v; }, - '^=': function(nv, v) { return nv.startsWith(v); }, + '^=': function(nv, v) { return nv == v || nv && nv.startsWith(v); }, + '$=': function(nv, v) { return nv == v || nv && nv.endsWith(v); }, + '*=': function(nv, v) { return nv == v || nv && nv.include(v); }, '$=': function(nv, v) { return nv.endsWith(v); }, '*=': function(nv, v) { return nv.include(v); }, '~=': function(nv, v) { return (' ' + nv + ' ').inc...
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply to this email, as some of the replaced lines are too long, so git won't let me send the email. However, there is nothing wrong with that patch, and it should be applied in the sequence listed below. Note also that I assume this will be tested on a clean f11 install, rather than an upgrade of an existing ovirt server
2007 Mar 28
2
[PATCH 2/3] User-space grant table device - main driver
A character device for accessing (in user-space) pages that have been granted by other domains. Signed-off-by: Derek Murray <Derek.Murray@cl.cam.ac.uk> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel