diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/openquake/engine/utils/__init__.py b/openquake/engine/utils/__init__.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/utils/__init__.py
+++ b/openquake/engine/utils/__init__.py
@@ -4,10 +4,17 @@
import decimal
import os
import importlib
+import collections
-from openquake.risklib.utils import Reg... | Reimplemented the Register to avoid dependencies | py |
diff --git a/source/rafcon/gui/controllers/state_machine_tree.py b/source/rafcon/gui/controllers/state_machine_tree.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/gui/controllers/state_machine_tree.py
+++ b/source/rafcon/gui/controllers/state_machine_tree.py
@@ -21,6 +21,7 @@
from gi.repository import GObject
f... | fix(state machine tree): fix import of Gdk widget works fine, including selecting and focusing inside gaphas | py |
diff --git a/thumbor/__init__.py b/thumbor/__init__.py
index <HASH>..<HASH> 100644
--- a/thumbor/__init__.py
+++ b/thumbor/__init__.py
@@ -10,4 +10,4 @@
'''This is the main module in thumbor'''
-__version__ = "3.6.1"
+__version__ = "3.6.2" | Bumping version to <I> | py |
diff --git a/riak/client/multiget.py b/riak/client/multiget.py
index <HASH>..<HASH> 100644
--- a/riak/client/multiget.py
+++ b/riak/client/multiget.py
@@ -131,7 +131,7 @@ class MultiGetPool(object):
task.outq.put(obj)
except KeyboardInterrupt:
raise
- except Sta... | multiget: Catch RiakError and other errors not covered by StandardError | py |
diff --git a/angr/project.py b/angr/project.py
index <HASH>..<HASH> 100644
--- a/angr/project.py
+++ b/angr/project.py
@@ -101,7 +101,8 @@ class Project:
if load_options is None: load_options = {}
load_options.update(kwargs)
-
+ if arch is not None:
+ load_options.update({'arch': ... | Make sure to actually do something with arch=, like send it to CLE | py |
diff --git a/python/herald/directory.py b/python/herald/directory.py
index <HASH>..<HASH> 100644
--- a/python/herald/directory.py
+++ b/python/herald/directory.py
@@ -155,7 +155,7 @@ class HeraldDirectory(object):
A directory listener has been bound
"""
for peer in list(self._peers.values()):... | Corrected call to peer_registered() when binding a directory listener The binding method was still calling the old name "peer_added" | py |
diff --git a/pgcontents/tests/utils.py b/pgcontents/tests/utils.py
index <HASH>..<HASH> 100644
--- a/pgcontents/tests/utils.py
+++ b/pgcontents/tests/utils.py
@@ -8,15 +8,6 @@ from itertools import starmap
import posixpath
from sqlalchemy import create_engine
-from sqlalchemy.engine import reflection
-from sqlalche... | MAINT: Remove unused imports. | py |
diff --git a/hagelslag/processing/ObjectMatcher.py b/hagelslag/processing/ObjectMatcher.py
index <HASH>..<HASH> 100644
--- a/hagelslag/processing/ObjectMatcher.py
+++ b/hagelslag/processing/ObjectMatcher.py
@@ -143,6 +143,13 @@ class TrackMatcher(object):
assignments.append(a)
return assig... | Moved check in hsdata for data in the ModelOutput object to TrackProcessing after loading was completed. | py |
diff --git a/apply_patches.py b/apply_patches.py
index <HASH>..<HASH> 100755
--- a/apply_patches.py
+++ b/apply_patches.py
@@ -10,7 +10,7 @@ import subprocess
import sys
-PATCH_EXTENTIONS = (".diff", ".patch")
+PATCH_EXTENSIONS = (".diff", ".patch")
def apply_patch(patch_file, base_dir, dry_run=False, verbose... | Fix typo noted by babbageclunk in review | py |
diff --git a/salt/pillar/git_pillar.py b/salt/pillar/git_pillar.py
index <HASH>..<HASH> 100644
--- a/salt/pillar/git_pillar.py
+++ b/salt/pillar/git_pillar.py
@@ -102,9 +102,9 @@ class GitPillar(object):
self.working_dir = ''
self.repo = None
- needle = '{0} {1}'.format(self.branch, self.rp_l... | fixes potential ext_pillar line mismatches | py |
diff --git a/rest_api/tests/unit/test_rest_api.py b/rest_api/tests/unit/test_rest_api.py
index <HASH>..<HASH> 100644
--- a/rest_api/tests/unit/test_rest_api.py
+++ b/rest_api/tests/unit/test_rest_api.py
@@ -118,6 +118,7 @@ class ApiTest(AioHTTPTestCase):
self.assertEqual(201, request.status)
respons... | Add unit test for new link in POST response | py |
diff --git a/src/guake.py b/src/guake.py
index <HASH>..<HASH> 100755
--- a/src/guake.py
+++ b/src/guake.py
@@ -1083,14 +1083,23 @@ class Guake(SimpleGladeApp):
return
self.prev_showhide_time = event_time
+ GDK_WINDOW_STATE_STICKY = 8
+ GDK_WINDOW_STATE_WITHDRAWN = 1
+ if sel... | Fix #<I> Leave debug logs, could still be useful | py |
diff --git a/linshareapi/user/documents.py b/linshareapi/user/documents.py
index <HASH>..<HASH> 100644
--- a/linshareapi/user/documents.py
+++ b/linshareapi/user/documents.py
@@ -83,14 +83,15 @@ class Documents(GenericClass):
@Time('upload')
@Invalid(whole_familly=True)
- def upload(self, file_path, desc... | Add async option to upload file api | py |
diff --git a/salt/returners/mysql.py b/salt/returners/mysql.py
index <HASH>..<HASH> 100644
--- a/salt/returners/mysql.py
+++ b/salt/returners/mysql.py
@@ -192,9 +192,12 @@ def _get_serv(ret=None, commit=False):
# An empty ssl_options dictionary passed to MySQLdb.connect will
# effectively connect w/o ... | Fix a few lint errors | py |
diff --git a/tests/utils.py b/tests/utils.py
index <HASH>..<HASH> 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -3,6 +3,7 @@ from datetime import timedelta
from ics.parse import ParseError
from ics.utils import parse_duration, timedelta_to_duration
+
class TestParseDuration(unittest.TestCase):
dataset_s... | [pep8] Fix E<I>, E<I> and E<I> warnings | py |
diff --git a/pandasdmx/tests/test_dsd.py b/pandasdmx/tests/test_dsd.py
index <HASH>..<HASH> 100644
--- a/pandasdmx/tests/test_dsd.py
+++ b/pandasdmx/tests/test_dsd.py
@@ -37,7 +37,7 @@ class Test_ESTAT_dsd_apro_mk_cola(MessageTest):
assert all(len(df) == count[id] for id, df in cls_as_dfs.items())
-clas... | Correct name of TestDSDCommon for pytest collection | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -107,6 +107,10 @@ arguments = dict(
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
+ 'Programming Language :: Python',
+ ... | Added Python version classifiers to setup.py | py |
diff --git a/discord/colour.py b/discord/colour.py
index <HASH>..<HASH> 100644
--- a/discord/colour.py
+++ b/discord/colour.py
@@ -172,6 +172,14 @@ class Colour:
return cls(0x11806a)
@classmethod
+ def brand_green(cls: Type[CT]) -> CT:
+ """A factory method that returns a :class:`Colour` with ... | Add Colour.brand_green and Colour.brand_red | py |
diff --git a/salt/modules/yumpkg.py b/salt/modules/yumpkg.py
index <HASH>..<HASH> 100644
--- a/salt/modules/yumpkg.py
+++ b/salt/modules/yumpkg.py
@@ -2548,6 +2548,8 @@ def _parse_repo_file(filename):
for line in rawfile:
if line.strip().startswith('#'):
headers += '{0}\n'.format(... | break if leading comments are all fetched | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,15 +11,22 @@ The development version is available at `GitHub
<https://github.com/atdt/afraid>`_. Issues should be documented
there.
"""
+import sys
+
try:
from setuptools import setup
except ImportError:
fro... | better dependencies declaration in setup.py | py |
diff --git a/trollsift/parser.py b/trollsift/parser.py
index <HASH>..<HASH> 100644
--- a/trollsift/parser.py
+++ b/trollsift/parser.py
@@ -303,7 +303,8 @@ def globify(fmt, keyvals=None):
if keyvals is None:
keyvals = {}
-
+ else:
+ keyvals = keyvals.copy()
parsedef, _ = _extract_parsedef(... | don't modify keyvals in globify() | py |
diff --git a/pygount/command.py b/pygount/command.py
index <HASH>..<HASH> 100644
--- a/pygount/command.py
+++ b/pygount/command.py
@@ -28,8 +28,11 @@ _HELP_ENCODING = '''encoding to use when reading source code; use "automatic"
different fallback encoding than CP1252; use "chardet" to let the chardet
package determ... | Improved online help on PATTERNS options. | py |
diff --git a/umap/umap_.py b/umap/umap_.py
index <HASH>..<HASH> 100644
--- a/umap/umap_.py
+++ b/umap/umap_.py
@@ -12,6 +12,7 @@ from sklearn.metrics import pairwise_distances
import numpy as np
import scipy.sparse
+import scipy.sparse.csgraph
import numba
import umap.distances as dist | Add an explicit import in case it didn't get otherwise included (as per #<I>) | py |
diff --git a/ambry/exporters/ckan/core.py b/ambry/exporters/ckan/core.py
index <HASH>..<HASH> 100644
--- a/ambry/exporters/ckan/core.py
+++ b/ambry/exporters/ckan/core.py
@@ -40,6 +40,12 @@ def export(dataset):
if not ckan:
raise EnvironmentError(MISSING_CREDENTIALS_MSG)
+ if dataset.config.metadata.... | Do not publish datasets with non-public access. #<I>. | py |
diff --git a/mpi4py_test/__init__.py b/mpi4py_test/__init__.py
index <HASH>..<HASH> 100644
--- a/mpi4py_test/__init__.py
+++ b/mpi4py_test/__init__.py
@@ -193,6 +193,11 @@ class MPITester(object):
site_dir = args.mpisub_site_dir
sys.path.insert(0, site_dir)
os.environ['PYTHONPATH'... | check if project module has already been imported Need to check for this b/c pytest realizes the wrong version has been imported, relative to the built test version, which was collected This should really only be True when testing mpi4py_test, which gets imported in runtests.py | py |
diff --git a/polyaxon/polyaxon/config_settings/auth.py b/polyaxon/polyaxon/config_settings/auth.py
index <HASH>..<HASH> 100644
--- a/polyaxon/polyaxon/config_settings/auth.py
+++ b/polyaxon/polyaxon/config_settings/auth.py
@@ -50,6 +50,9 @@ if AUTH_LDAP_ENABLED:
AUTH_LDAP_USER_DN_TEMPLATE = config.get_string('PO... | Fix issue all users login as LDAP anonymous user when AUTH_LDAP_USER_DN_TEMPLATE is empty string | py |
diff --git a/tests/test_ec2/test_instances.py b/tests/test_ec2/test_instances.py
index <HASH>..<HASH> 100644
--- a/tests/test_ec2/test_instances.py
+++ b/tests/test_ec2/test_instances.py
@@ -517,6 +517,7 @@ def test_describe_instance_status_with_instance_filter():
cm.exception.status.should.equal(400)
cm.exce... | Limit test for describe instance status filter by boto version | py |
diff --git a/pyqode/core/frontend/modes/pygments_highlighter.py b/pyqode/core/frontend/modes/pygments_highlighter.py
index <HASH>..<HASH> 100644
--- a/pyqode/core/frontend/modes/pygments_highlighter.py
+++ b/pyqode/core/frontend/modes/pygments_highlighter.py
@@ -6,6 +6,7 @@ on pygments.
.. note: This code is taken and... | Handle failure to find a specific style more gracefully (at the moment there is a bug with frozen app and pyqode styles so we need to get back on our feets somehow) | py |
diff --git a/events/events.py b/events/events.py
index <HASH>..<HASH> 100644
--- a/events/events.py
+++ b/events/events.py
@@ -131,9 +131,9 @@ def generate_ical_file(generator):
for e in curr_events:
ie = icalendar.Event(
summary=e.metadata['summary'],
- dtstart=e.event_plugin_data... | fix: use ISO format date strings in ical file as specified in <URL> | py |
diff --git a/salt/utils/network.py b/salt/utils/network.py
index <HASH>..<HASH> 100644
--- a/salt/utils/network.py
+++ b/salt/utils/network.py
@@ -986,6 +986,27 @@ def hex2ip(hex_ip, invert=False):
hip & 255)
+def mac2eui64(mac, prefix=None):
+ '''
+ Convert a MAC address ... | Small utility function for deriving IPv6 SLAAC EUI-<I> identifiers `mac2eui<I>` will take a MAC and optional prefix, and generate the excepted EUI-<I>/SLAAC address from it | py |
diff --git a/pyvista/_version.py b/pyvista/_version.py
index <HASH>..<HASH> 100644
--- a/pyvista/_version.py
+++ b/pyvista/_version.py
@@ -15,7 +15,7 @@ Denotes the first release candidate.
"""
# major, minor, patch
-version_info = 0, 31, 'dev0'
+version_info = 0, 32, 'dev0'
# Nice string for the version
__vers... | bump to <I>.dev0 (#<I>) | py |
diff --git a/photutils/psf.py b/photutils/psf.py
index <HASH>..<HASH> 100644
--- a/photutils/psf.py
+++ b/photutils/psf.py
@@ -7,20 +7,8 @@ import warnings
import numpy as np
from astropy.modeling.parameters import Parameter
from astropy.utils.exceptions import AstropyUserWarning
-
-# TODO: remove try ... except whe... | Use astropy <I> fitters and models | py |
diff --git a/tldap/__init__.py b/tldap/__init__.py
index <HASH>..<HASH> 100644
--- a/tldap/__init__.py
+++ b/tldap/__init__.py
@@ -38,6 +38,8 @@ if not django.conf.settings.LDAP:
'PASSWORD': django.conf.settings.LDAP_ADMIN_PASSWORD,
'USE_TLS' : False,
'TLS_CA' : None,
+ 'LDAP_ACCOUNT_B... | New backward compatability settings for LDAP. | py |
diff --git a/tests/test_scheduler.py b/tests/test_scheduler.py
index <HASH>..<HASH> 100644
--- a/tests/test_scheduler.py
+++ b/tests/test_scheduler.py
@@ -272,3 +272,13 @@ class TestScheduler(RQTestCase):
"""
s = Scheduler()
self.assertEqual(s.connection, self.testconn)
+
+ def test_no_fun... | New test: Ensure functions from the __main__ module are not accepted for scheduling. | py |
diff --git a/estnltk/storage/postgres/db.py b/estnltk/storage/postgres/db.py
index <HASH>..<HASH> 100755
--- a/estnltk/storage/postgres/db.py
+++ b/estnltk/storage/postgres/db.py
@@ -770,9 +770,9 @@ class PostgresStorage:
where = False
sql_parts = []
table_escaped = SQL("{}.{}").f... | fix PostgreStorage.select_raw | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -11,13 +11,14 @@ except ImportError:
readme = open('README.rst').read()
history = open('HISTORY.rst').read().replace('.. :changelog:', '')
-requirements = [
+requirements = open('requirements.txt').readlines()
+"""[
#... | setup.py Read requirements.txt | py |
diff --git a/pecan/tests/test_rest.py b/pecan/tests/test_rest.py
index <HASH>..<HASH> 100644
--- a/pecan/tests/test_rest.py
+++ b/pecan/tests/test_rest.py
@@ -886,4 +886,5 @@ class TestRestController(TestCase):
kwargs = {'foo': 'bar', 'spam': 'eggs'}
r = app.post('/', kwargs)
assert r.status_... | Update a test to be more repeatable. | py |
diff --git a/BDMesh/MeshUniform1D.py b/BDMesh/MeshUniform1D.py
index <HASH>..<HASH> 100644
--- a/BDMesh/MeshUniform1D.py
+++ b/BDMesh/MeshUniform1D.py
@@ -113,8 +113,8 @@ class MeshUniform1D(Mesh1D):
shift = (mesh.physical_nodes[:min_size] - self.physical_nodes[:min_size]) / min_step
print(mes... | correcting check if two uniform meshes are aligned. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,6 @@
from setuptools import setup, find_packages
-version = '1.3.2'
+version = '1.3.3'
setup(name='switchboard',
version=version, | Prep for release <I>. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -51,7 +51,7 @@ setup(
description="a liking app for Django",
name="pinax-likes",
long_description=LONG_DESCRIPTION,
- version="2.2.2",
+ version="3.0.0",
url="http://github.com/pinax/pinax-likes/",
... | Updating version in set.py | py |
diff --git a/transducer/sources.py b/transducer/sources.py
index <HASH>..<HASH> 100644
--- a/transducer/sources.py
+++ b/transducer/sources.py
@@ -3,22 +3,25 @@ from time import sleep
def iterable_source(iterable, target):
- """Convert an iterable into a stream of events."""
- result = None
+ """Convert a... | The iterable_source and poisson_source work in identical ways so now have the same form. | py |
diff --git a/tests/test_code_gen.py b/tests/test_code_gen.py
index <HASH>..<HASH> 100644
--- a/tests/test_code_gen.py
+++ b/tests/test_code_gen.py
@@ -60,6 +60,10 @@ class Comparisons(object):
"""
srctxt = canonical(srctxt)
self.assertEqual(self.to_source(ast.parse(srctxt)).rstrip(), srctxt)
... | Add a test for our handling of infinities Closes #<I> | py |
diff --git a/pyhomematic/devicetypes/thermostats.py b/pyhomematic/devicetypes/thermostats.py
index <HASH>..<HASH> 100644
--- a/pyhomematic/devicetypes/thermostats.py
+++ b/pyhomematic/devicetypes/thermostats.py
@@ -352,6 +352,7 @@ DEVICETYPES = {
"HmIP-eTRV": IPThermostat,
"HmIP-eTRV-2": IPThermostat,
"H... | add IPThermostat HmIP-B1 to DEVICETYPES To support the HmIP-B1 sold by german discounter Lidl a new IPThermostat entry is added. | py |
diff --git a/tests/parser_vulnerability_model_unittest.py b/tests/parser_vulnerability_model_unittest.py
index <HASH>..<HASH> 100644
--- a/tests/parser_vulnerability_model_unittest.py
+++ b/tests/parser_vulnerability_model_unittest.py
@@ -66,6 +66,7 @@ class VulnerabilityModelFileTestCase(unittest.TestCase):
... | expand upon the venerability parser to parse children of venerability functions | py |
diff --git a/delphi/AnalysisGraph.py b/delphi/AnalysisGraph.py
index <HASH>..<HASH> 100644
--- a/delphi/AnalysisGraph.py
+++ b/delphi/AnalysisGraph.py
@@ -136,7 +136,9 @@ class AnalysisGraph(nx.DiGraph):
"""
from indra.sources.eidos import process_text
eidosProcessor = process_text(text, webs... | Updating to the handling of Eidos processing in the latest version of INDRA (#<I>) This PR closes #<I> . | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -22,6 +22,7 @@ for m in ('multiprocessing', 'billiard'):
import sys
import os
+from codecs import open
from setuptools import setup, find_packages, Extension
from opbeat.version import VERSION | use codecs.open for enhanced Python2 compatibility | py |
diff --git a/civicpy/civic.py b/civicpy/civic.py
index <HASH>..<HASH> 100644
--- a/civicpy/civic.py
+++ b/civicpy/civic.py
@@ -514,7 +514,7 @@ class Variant(CivicRecord):
def is_valid_for_vcf(self, emit_warnings=False):
if self.coordinates.chromosome2 or self.coordinates.start2 or self.coordinates.stop2:
... | Fix bug with the `is_valid_for_vcf` logic | py |
diff --git a/sigal/writer.py b/sigal/writer.py
index <HASH>..<HASH> 100644
--- a/sigal/writer.py
+++ b/sigal/writer.py
@@ -27,6 +27,7 @@ Generate html pages for each directory of images
from __future__ import absolute_import
+import codecs
import copy
import os
@@ -133,9 +134,8 @@ class Writer():
... | use codecs to save the html file | py |
diff --git a/salt/states/pkgrepo.py b/salt/states/pkgrepo.py
index <HASH>..<HASH> 100644
--- a/salt/states/pkgrepo.py
+++ b/salt/states/pkgrepo.py
@@ -228,7 +228,10 @@ def managed(name, **kwargs):
.format(name))
return ret
if __opts__['test']:
- ret['comment'] = (... | Add note to pkgrepo states when run with test=True | py |
diff --git a/openstack_dashboard/dashboards/admin/metering/panel.py b/openstack_dashboard/dashboards/admin/metering/panel.py
index <HASH>..<HASH> 100644
--- a/openstack_dashboard/dashboards/admin/metering/panel.py
+++ b/openstack_dashboard/dashboards/admin/metering/panel.py
@@ -20,7 +20,8 @@ class Metering(horizon.Pane... | Making Resource panel visible where appropriate The resource panel is being hidden by a missing default rule in the ceilometer policy file. Adding a required keystone rule to the policy check, identity:list_projects. The greater issue of policy being OR rather than AND will be addressed in a separate issue. Change-I... | py |
diff --git a/argh/helpers.py b/argh/helpers.py
index <HASH>..<HASH> 100644
--- a/argh/helpers.py
+++ b/argh/helpers.py
@@ -40,6 +40,9 @@ __all__ = [
def set_default_command(parser, function):
""" Sets default command (i.e. a function) for given parser.
+ If `parser.description` is empty and the function has ... | Improved set_default_command(): if `parser.description` is empty and the function has a docstring, that docstring is used as the parser description. | py |
diff --git a/python/phonenumbers/shortnumberinfo.py b/python/phonenumbers/shortnumberinfo.py
index <HASH>..<HASH> 100644
--- a/python/phonenumbers/shortnumberinfo.py
+++ b/python/phonenumbers/shortnumberinfo.py
@@ -190,7 +190,7 @@ def expected_cost_for_region(short_numobj, region_dialing_from):
# The possible leng... | Fix new lint from pycodestyle <I> | py |
diff --git a/ryu/cmd/ofa_neutron_agent.py b/ryu/cmd/ofa_neutron_agent.py
index <HASH>..<HASH> 100755
--- a/ryu/cmd/ofa_neutron_agent.py
+++ b/ryu/cmd/ofa_neutron_agent.py
@@ -25,7 +25,6 @@ from ryu import cfg
from neutron.common import config as logging_config
from neutron.openstack.common import log as logging
-fr... | ofa_neutron_agent: Use AppManager.run_apps No functional changes are intended. | py |
diff --git a/tools/fontbakery-setup.py b/tools/fontbakery-setup.py
index <HASH>..<HASH> 100755
--- a/tools/fontbakery-setup.py
+++ b/tools/fontbakery-setup.py
@@ -226,7 +226,7 @@ args = parser.parse_args()
directory = UpstreamDirectory(args.directory)
-process_files = directory.ALL_FONTS
+process_files = [x for x ... | ignore sfd for fontbakery-setup as we dont support it | py |
diff --git a/bmemcached/__init__.py b/bmemcached/__init__.py
index <HASH>..<HASH> 100644
--- a/bmemcached/__init__.py
+++ b/bmemcached/__init__.py
@@ -196,7 +196,10 @@ class Server(object):
def _read_socket(self, size):
value = ''
while len(value) < size:
- value += self.connection.rec... | Break out of recv loop if we read no data - this prevents being stuck in an infinite loop when reading from a dead server | py |
diff --git a/fleece/cli/build/build.py b/fleece/cli/build/build.py
index <HASH>..<HASH> 100755
--- a/fleece/cli/build/build.py
+++ b/fleece/cli/build/build.py
@@ -117,7 +117,13 @@ def destroy_volume(name):
volume = api.volumes.get(name)
except errors.NotFound:
return
- volume.remove()
+ try... | Don't fail if unable to remove volume | py |
diff --git a/pipenv/utils.py b/pipenv/utils.py
index <HASH>..<HASH> 100644
--- a/pipenv/utils.py
+++ b/pipenv/utils.py
@@ -832,8 +832,18 @@ def mkdir_p(newdir):
if head and not os.path.isdir(head):
mkdir_p(head)
if tail:
- os.mkdir(newdir)
-
+ # Even though we've che... | Fix a TOCTOU issue in mkdir_p When running multiple pipenv processes simultaneously, they may both attempt to use 'mkdir_p' at the same time, which can cause one of the pipenv processes to crash when it tries to create a directory that already exists. Instead of crashing outright, this commit instead opts to continue... | py |
diff --git a/f90nml/parser.py b/f90nml/parser.py
index <HASH>..<HASH> 100644
--- a/f90nml/parser.py
+++ b/f90nml/parser.py
@@ -335,6 +335,8 @@ class Parser(object):
if patch_values:
if not isinstance(patch_values, list):
patch_values = [patch_values]
+ else:
+ ... | Imperfect patch list name fix We now manually re-write the variable name of patched lists, after supressing it at the correct time. The downside is that the whitespace is now out of order. Any whitespace after the variable name and the '=' token is written before the variable name, rather than after. THis is an imp... | py |
diff --git a/src/runez/system.py b/src/runez/system.py
index <HASH>..<HASH> 100644
--- a/src/runez/system.py
+++ b/src/runez/system.py
@@ -775,7 +775,7 @@ class Anchored:
(str): Short form, using '~' if applicable
"""
if cls._home is None:
- cls._home = os.path.expanduser("~")
... | Don't shorten paths to '~' for root user | py |
diff --git a/markdown_strings/__init__.py b/markdown_strings/__init__.py
index <HASH>..<HASH> 100644
--- a/markdown_strings/__init__.py
+++ b/markdown_strings/__init__.py
@@ -15,8 +15,8 @@ markdown see:
def esc_format(text):
"""Return text with formatting escaped.
- Markdown requires a backslash before liter... | Escape backticks Backticks should be escaped since they denote monospace text in Markdown. | py |
diff --git a/insights/core/context.py b/insights/core/context.py
index <HASH>..<HASH> 100644
--- a/insights/core/context.py
+++ b/insights/core/context.py
@@ -162,12 +162,22 @@ class ExecutionContext(six.with_metaclass(ExecutionContextMeta)):
sep = os.path.sep
m = sep + cls.marker.lstrip(sep)
+ ... | Return the common path of marker which is close to root (#<I>) * Sometimes, the dir named "sos_commands" appears more than once in sosreport. In this case, the common path should be the one which is the closest to the root. | py |
diff --git a/montblanc/tests/run_tests.py b/montblanc/tests/run_tests.py
index <HASH>..<HASH> 100644
--- a/montblanc/tests/run_tests.py
+++ b/montblanc/tests/run_tests.py
@@ -18,16 +18,17 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/... | Import in run_tests function | py |
diff --git a/tests/test_struct.py b/tests/test_struct.py
index <HASH>..<HASH> 100644
--- a/tests/test_struct.py
+++ b/tests/test_struct.py
@@ -337,3 +337,8 @@ def test_repr_with_value_exception(Struct):
raise MyException("bummer")
repr(Struct({'a': Fisk()}))
+
+
+@pytest.mark.skipif(sys.vers... | Test to show (for python 3) that keys need to be comparable | py |
diff --git a/spinoff/actor/remoting.py b/spinoff/actor/remoting.py
index <HASH>..<HASH> 100644
--- a/spinoff/actor/remoting.py
+++ b/spinoff/actor/remoting.py
@@ -9,6 +9,7 @@ import traceback
from cPickle import dumps
from cStringIO import StringIO
from collections import deque
+from decimal import Decimal
from pic... | Improved MockNetwork.simulate to 1) take a step argument instead of resolution and 2) use decimal.Decimal internally for consistency 3) limit the step precision to 5 sign. fig. and 4) not miss the last iteration anymore, i.e. duration=<I> means 3 iterations at <I>, <I> and <I> | py |
diff --git a/trunk/cim_provider.py b/trunk/cim_provider.py
index <HASH>..<HASH> 100644
--- a/trunk/cim_provider.py
+++ b/trunk/cim_provider.py
@@ -1485,6 +1485,7 @@ instance of PG_ProviderModule
InterfaceType = "Python";
InterfaceVersion = "1.0.0";
Location = "/usr/lib/pycim/%(classname)sProvider.py";
+ ... | added UserContext to pegasus registration in codegen. Include more details (like which module failed) when load_source() fails. git-svn-id: <URL> | py |
diff --git a/twython/api.py b/twython/api.py
index <HASH>..<HASH> 100644
--- a/twython/api.py
+++ b/twython/api.py
@@ -386,7 +386,7 @@ class Twython(EndpointsMixin, object):
)
return self.cursor(self.search, q=search_query, **params)
- def cursor(self, function, returnPages = False, **params):
+ ... | fixed paramater naming as per PEP8 | py |
diff --git a/DashTable/html2list.py b/DashTable/html2list.py
index <HASH>..<HASH> 100644
--- a/DashTable/html2list.py
+++ b/DashTable/html2list.py
@@ -18,7 +18,7 @@ def already_exists(idx_row, idx_col, row):
def html2list(file):
""" main function """
# we can input a file but even a string!
- if file.rspl... | Fixed file name auto-detection | py |
diff --git a/WrightTools/artists.py b/WrightTools/artists.py
index <HASH>..<HASH> 100644
--- a/WrightTools/artists.py
+++ b/WrightTools/artists.py
@@ -121,7 +121,8 @@ class Axes(matplotlib.axes.Axes):
contours = matplotlib.axes.Axes.contourf(self, *args, **kwargs) # why can't I use super?
# fill line... | (resolves #<I>) | py |
diff --git a/tests/system/providers/zendesk/example_zendesk_custom_get.py b/tests/system/providers/zendesk/example_zendesk_custom_get.py
index <HASH>..<HASH> 100644
--- a/tests/system/providers/zendesk/example_zendesk_custom_get.py
+++ b/tests/system/providers/zendesk/example_zendesk_custom_get.py
@@ -44,6 +44,7 @@ wit... | Migrate Zendesk example DAGs to new design AIP-<I> (#<I>) closes: #<I> | py |
diff --git a/nhlscrapi/scrapr/rtss.py b/nhlscrapi/scrapr/rtss.py
index <HASH>..<HASH> 100644
--- a/nhlscrapi/scrapr/rtss.py
+++ b/nhlscrapi/scrapr/rtss.py
@@ -169,6 +169,6 @@ class PlayParser(object):
if 'PP' in sg_str:
return Strength.PP
elif 'SH' in sg_str:
- return Strength.... | Fixed shorthanded play detection Obvious typo where Strenght.PP was returned instead of Strength.SH | py |
diff --git a/ltiauthenticator/__init__.py b/ltiauthenticator/__init__.py
index <HASH>..<HASH> 100644
--- a/ltiauthenticator/__init__.py
+++ b/ltiauthenticator/__init__.py
@@ -132,7 +132,13 @@ class LTIAuthenticator(Authenticator):
args[k] = values[0].decode() if len(values) == 1 else [v.decode() for v in v... | Handle case when x-forwarded-proto is not specificed | py |
diff --git a/sdk/identity/azure-identity/tests/test_aad_client.py b/sdk/identity/azure-identity/tests/test_aad_client.py
index <HASH>..<HASH> 100644
--- a/sdk/identity/azure-identity/tests/test_aad_client.py
+++ b/sdk/identity/azure-identity/tests/test_aad_client.py
@@ -3,6 +3,7 @@
# Licensed under the MIT License.
#... | Update tests for msal <I> (#<I>) | py |
diff --git a/furious/tests/test_async.py b/furious/tests/test_async.py
index <HASH>..<HASH> 100644
--- a/furious/tests/test_async.py
+++ b/furious/tests/test_async.py
@@ -103,8 +103,6 @@ class TestAsync(unittest.TestCase):
local_context = _local.get_local_context()
local_context._executing_async_conte... | Remove call to super.setUp in direct TestCase subclasses | py |
diff --git a/tests/test_orbits.py b/tests/test_orbits.py
index <HASH>..<HASH> 100644
--- a/tests/test_orbits.py
+++ b/tests/test_orbits.py
@@ -1192,6 +1192,17 @@ def _check_energy_jacobi_angmom(os,list_os):
assert numpy.all(numpy.fabs(os.Jacobi(pot=MWPotential2014+dp+sp,OmegaP=0.6)[ii]/list_os[ii].Jacobi(p... | Tests of angular momentum errors | py |
diff --git a/openquake/calculators/classical.py b/openquake/calculators/classical.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/classical.py
+++ b/openquake/calculators/classical.py
@@ -310,7 +310,8 @@ class ClassicalCalculator(base.HazardCalculator):
self.datastore['csm_info'] = self.csm_info... | Fixed num_cores in classical [skip CI] Former-commit-id: b<I>f5a<I>acd3ff0a4e<I>bac<I>b<I>bce9bb | py |
diff --git a/budou/budou.py b/budou/budou.py
index <HASH>..<HASH> 100644
--- a/budou/budou.py
+++ b/budou/budou.py
@@ -67,7 +67,7 @@ def main():
inlinestyle=args['--inlinestyle'],
wbr=args['--wbr'],
)
- print(result['html_code'])
+ print(result['html_code'].encode('utf-8'))
sys.exit()
def p... | Make sure output is utf-8 encoded Otherwise, you cannot send stdout to any other process or file without running into the error `UnicodeEncodeError: 'ascii' codec can't encode characters in position <I>-<I>: ordinal not in range(<I>)` | py |
diff --git a/tests/test_build_scripts.py b/tests/test_build_scripts.py
index <HASH>..<HASH> 100644
--- a/tests/test_build_scripts.py
+++ b/tests/test_build_scripts.py
@@ -39,11 +39,13 @@ class BuildScriptsTestCase(support.TempdirManager,
self.assert_(name in built)
def get_build_scripts_cmd(self, ta... | Add missing executable option to DummyCommand. | py |
diff --git a/tests/test_keras_integration.py b/tests/test_keras_integration.py
index <HASH>..<HASH> 100644
--- a/tests/test_keras_integration.py
+++ b/tests/test_keras_integration.py
@@ -153,6 +153,10 @@ def test_show_prediction_nodeps(show_nodeps, keras_clf, cat_dog_image):
assert isinstance(expl, Explanation)
... | Test 'maybe image' check with both input and model | py |
diff --git a/schedule/views.py b/schedule/views.py
index <HASH>..<HASH> 100644
--- a/schedule/views.py
+++ b/schedule/views.py
@@ -319,7 +319,12 @@ def _api_occurrences(start, end, calendar_slug, timezone):
def convert(ddatetime):
if ddatetime:
ddatetime = ddatetime.split(' ')[0]
... | additional date string format from fullcalendar Fix for different date string format in fullcalendar ajax request. Try use one additional string before failing. | py |
diff --git a/custodian/qchem/handlers.py b/custodian/qchem/handlers.py
index <HASH>..<HASH> 100644
--- a/custodian/qchem/handlers.py
+++ b/custodian/qchem/handlers.py
@@ -319,6 +319,7 @@ class QChemErrorHandler(ErrorHandler):
def set_scf_initial_guess(self, guess="sad"):
if "scf_guess" not in self.fix_s... | if the error step is the first one, the SCF algorithm can always be changed | py |
diff --git a/qtpylib/blotter.py b/qtpylib/blotter.py
index <HASH>..<HASH> 100644
--- a/qtpylib/blotter.py
+++ b/qtpylib/blotter.py
@@ -1087,7 +1087,7 @@ class Blotter():
try:
for i in range(len(data)):
handler(data.iloc[i:i + 1])
- time.sleep(.1)
+ ti... | increased sleep to better handle backtests | py |
diff --git a/openquake/commonlib/calculators/base.py b/openquake/commonlib/calculators/base.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/calculators/base.py
+++ b/openquake/commonlib/calculators/base.py
@@ -156,7 +156,7 @@ class BaseCalculator(object):
"""
performance = self.monitor.collec... | Fixed a bug when saving the performance | py |
diff --git a/tests/test_api.py b/tests/test_api.py
index <HASH>..<HASH> 100644
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -68,9 +68,9 @@ def test_marcxml2record_handles_journalsnew():
def test_marcxml2record_falls_back_to_hep():
snippet = (
- '<datafield tag="980" ind1=" " ind2=" ">'
- ' <s... | tests: fix indentation of snippet | py |
diff --git a/py2pack/py2pack.py b/py2pack/py2pack.py
index <HASH>..<HASH> 100644
--- a/py2pack/py2pack.py
+++ b/py2pack/py2pack.py
@@ -125,15 +125,21 @@ def check_or_set_version(args):
def newest_download_url(args):
- for url in pypi.package_urls(args.name, args.version): # fetch all download U... | Try more hard to download a tarball. Some PyPI packages don't have a source release but provide a download URL pointing to the upstream project web page, try to fetch that instead. | py |
diff --git a/tests/test_xlsm_hrrr.py b/tests/test_xlsm_hrrr.py
index <HASH>..<HASH> 100644
--- a/tests/test_xlsm_hrrr.py
+++ b/tests/test_xlsm_hrrr.py
@@ -51,8 +51,6 @@ def hrrr(request, tread):
return HRRR(tread)
-@pytest.mark.skipif(sys.version_info > (3, 0),
- reason="pynio only works on ... | Remove skip for python 3 as pynio is available for python 3 | py |
diff --git a/ayrton/functions.py b/ayrton/functions.py
index <HASH>..<HASH> 100644
--- a/ayrton/functions.py
+++ b/ayrton/functions.py
@@ -22,6 +22,7 @@ import os
import paramiko
from ayrton.expansion import bash
import pickle
+import types
# NOTE: all this code is excuted in the script's environment
@@ -59,8 +... | * ssh() filters out modules before trying to pickle locals(). | py |
diff --git a/pymemcache/test/test_integration.py b/pymemcache/test/test_integration.py
index <HASH>..<HASH> 100644
--- a/pymemcache/test/test_integration.py
+++ b/pymemcache/test/test_integration.py
@@ -242,6 +242,7 @@ def test_serde_serialization(client_class, host, port, socket_module):
client.set(b'key', va... | Ensure serde integration tests return the same type | py |
diff --git a/tests/unit/test_slipsocket.py b/tests/unit/test_slipsocket.py
index <HASH>..<HASH> 100644
--- a/tests/unit/test_slipsocket.py
+++ b/tests/unit/test_slipsocket.py
@@ -4,11 +4,14 @@
import pytest
+import os
+import sys
import socket
import sliplib
from sliplib import ProtocolError, SlipSocket, END,... | Attempt to filter out failing test on Travis for Python <I> | py |
diff --git a/tacl/data_store.py b/tacl/data_store.py
index <HASH>..<HASH> 100644
--- a/tacl/data_store.py
+++ b/tacl/data_store.py
@@ -175,7 +175,7 @@ class DataStore:
def _analyse(self, table=''):
"""Analyses the database, or `table` if it is supplied.
- :param table: optional name of table anal... | Added missing word in docstring. | py |
diff --git a/dataviews/sheetviews/sheetviews.py b/dataviews/sheetviews/sheetviews.py
index <HASH>..<HASH> 100644
--- a/dataviews/sheetviews/sheetviews.py
+++ b/dataviews/sheetviews/sheetviews.py
@@ -581,17 +581,16 @@ class SheetStack(DataStack):
dim1, dim2 = self.last.shape
if lbrt is None:
... | Fixes to grid_sample on SheetViews | py |
diff --git a/spacy/tests/regression/test_issue5230.py b/spacy/tests/regression/test_issue5230.py
index <HASH>..<HASH> 100644
--- a/spacy/tests/regression/test_issue5230.py
+++ b/spacy/tests/regression/test_issue5230.py
@@ -115,6 +115,23 @@ def test_writer_with_path_py35():
writer.close()
+def test_... | issue<I> added unit test for dumping and loading knowledgebase | py |
diff --git a/src/dolo/compiler/compiler_mirfac.py b/src/dolo/compiler/compiler_mirfac.py
index <HASH>..<HASH> 100644
--- a/src/dolo/compiler/compiler_mirfac.py
+++ b/src/dolo/compiler/compiler_mirfac.py
@@ -366,7 +366,7 @@ switch flag
n = size(snext,1);
{exp_fun_block}
case 'e';
- warning('Euler equation er... | Compatibility fix in compiler_mirfac | py |
diff --git a/gdspy/__init__.py b/gdspy/__init__.py
index <HASH>..<HASH> 100644
--- a/gdspy/__init__.py
+++ b/gdspy/__init__.py
@@ -490,6 +490,28 @@ class PolygonSet(object):
vec = numpy.array((dx, dy))
self.polygons = [points + vec for points in self.polygons]
return self
+
+ def mirro... | Updated the init with the mirror function. This function allows reflection across a line defined by 2 points. | py |
diff --git a/aiohttp/connector.py b/aiohttp/connector.py
index <HASH>..<HASH> 100644
--- a/aiohttp/connector.py
+++ b/aiohttp/connector.py
@@ -260,21 +260,20 @@ class ProxyConnector(TCPConnector):
@asyncio.coroutine
def _create_connection(self, req, **kwargs):
+ proxy_req = ClientRequest('GET', self.... | modifying original request only if connected to proxy | py |
diff --git a/pypika/queries.py b/pypika/queries.py
index <HASH>..<HASH> 100644
--- a/pypika/queries.py
+++ b/pypika/queries.py
@@ -903,7 +903,6 @@ class QueryBuilder(Selectable, Term):
self._offset = slice.start
self._limit = slice.stop
- @builder
def __getitem__(self, item):
if not... | removed superfluous @builder decorator from QueryBuilder.__getitem__ | py |
diff --git a/multilingual/translation.py b/multilingual/translation.py
index <HASH>..<HASH> 100644
--- a/multilingual/translation.py
+++ b/multilingual/translation.py
@@ -256,8 +256,11 @@ class Translation:
main_cls.get_translation = get_translation
main_cls.fill_translation_cache = fill_translation_c... | Fixed a bug that would cause DM to always load translation data with a separate query for each translatable model instance. git-svn-id: <URL> | py |
diff --git a/compara/catalog.py b/compara/catalog.py
index <HASH>..<HASH> 100644
--- a/compara/catalog.py
+++ b/compara/catalog.py
@@ -598,7 +598,7 @@ def ortholog(args):
from jcvi.compara.blastfilter import main as blastfilter_main
from jcvi.compara.quota import main as quota_main
from jcvi.compara.synt... | check for self comparison in compara.catalog.ortholog() | py |
diff --git a/multiqc/modules/damageprofiler/damageprofiler.py b/multiqc/modules/damageprofiler/damageprofiler.py
index <HASH>..<HASH> 100644
--- a/multiqc/modules/damageprofiler/damageprofiler.py
+++ b/multiqc/modules/damageprofiler/damageprofiler.py
@@ -260,7 +260,7 @@ class MultiqcModule(BaseMultiqcModule):
... | Typo fix in 3P plot typo | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,15 +1,20 @@
+import os
+import sys
from setuptools import setup, find_packages
# make python setup.py test not spew errors (see http://www.eby-sarna.com/pipermail/peak/2010-May/003357.html)
-import sys
if 'test' in s... | get version from source tree in setup.py | py |
diff --git a/tests/filesys_test_7.py b/tests/filesys_test_7.py
index <HASH>..<HASH> 100644
--- a/tests/filesys_test_7.py
+++ b/tests/filesys_test_7.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
##==============================================================#
## SECTION: Imports ... | Added encoding to file. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.