diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/address/forms.py b/address/forms.py
index <HASH>..<HASH> 100644
--- a/address/forms.py
+++ b/address/forms.py
@@ -2,7 +2,6 @@ import urllib2
from django import forms
# from uni_form.helpers import *
from django.utils.safestring import mark_safe
-from djangoutils.conv import to_address
from googlemaps i... | Had an error due to importing old code. | py |
diff --git a/quarkc/compiler.py b/quarkc/compiler.py
index <HASH>..<HASH> 100644
--- a/quarkc/compiler.py
+++ b/quarkc/compiler.py
@@ -83,15 +83,26 @@ class Roots(AST):
def __iter__(self):
return iter(self.roots.values())
+ def dfs(self, root, result, visiting):
+ if root in visiting:
+ ... | [FIX]: Fixed bug in topological sort of compilation units. This prevents the compiler from failing assertions due to attempting to compiler things in the wrong order. | py |
diff --git a/openid/test/test_association_response.py b/openid/test/test_association_response.py
index <HASH>..<HASH> 100644
--- a/openid/test/test_association_response.py
+++ b/openid/test/test_association_response.py
@@ -115,12 +115,14 @@ class ParseAssociationSessionTypeMismatch(unittest.TestCase):
keys... | [project @ Fixed testing bugs that were masked in Python<I>] | py |
diff --git a/planetaryimage/__init__.py b/planetaryimage/__init__.py
index <HASH>..<HASH> 100755
--- a/planetaryimage/__init__.py
+++ b/planetaryimage/__init__.py
@@ -3,6 +3,10 @@
__author__ = 'PlanetaryPy Developers'
__email__ = 'contact@planetarypy.com'
__version__ = '0.1.0'
+__all__ = [
+ 'PDS3Image',
+ 'Cu... | Export image files in __all__ (fixes flake8 errors). | py |
diff --git a/astrocats/catalog/utils/plotting.py b/astrocats/catalog/utils/plotting.py
index <HASH>..<HASH> 100644
--- a/astrocats/catalog/utils/plotting.py
+++ b/astrocats/catalog/utils/plotting.py
@@ -3,6 +3,8 @@
from collections import OrderedDict
from random import seed, shuffle
+from matplotlib.colors import r... | ENH: changed radiocolorf to be continuous | py |
diff --git a/tools/interop_matrix/client_matrix.py b/tools/interop_matrix/client_matrix.py
index <HASH>..<HASH> 100644
--- a/tools/interop_matrix/client_matrix.py
+++ b/tools/interop_matrix/client_matrix.py
@@ -139,6 +139,7 @@ LANG_RELEASE_MATRIX = {
('v1.15.0', ReleaseInfo()),
('v1.16.1', ReleaseInfo... | Add grpc-java <I> to interop matrix release note: no | py |
diff --git a/pyvista/utilities/__init__.py b/pyvista/utilities/__init__.py
index <HASH>..<HASH> 100644
--- a/pyvista/utilities/__init__.py
+++ b/pyvista/utilities/__init__.py
@@ -9,4 +9,5 @@ from .helpers import *
from .parametric_objects import *
from .sphinx_gallery import Scraper, _get_sg_image_scraper
from .regr... | Expose start_xvfb (#<I>) | py |
diff --git a/openid/test/storetest.py b/openid/test/storetest.py
index <HASH>..<HASH> 100644
--- a/openid/test/storetest.py
+++ b/openid/test/storetest.py
@@ -150,6 +150,25 @@ def testStore(store):
checkRemove(server_url, assoc.handle, False)
checkRemove(server_url, assoc3.handle, False)
+ ### test expir... | [project @ test.storetest: add test for cleanupAssociations()] | py |
diff --git a/fints/client.py b/fints/client.py
index <HASH>..<HASH> 100644
--- a/fints/client.py
+++ b/fints/client.py
@@ -1120,6 +1120,7 @@ class FinTS3PinTanClient(FinTS3Client):
def fetch_tan_mechanisms(self):
self.set_tan_mechanism('999')
+ self._ensure_system_id()
with self._new_dia... | Ensure a system ID exists when TAN mechanisms are fetched | py |
diff --git a/invenio_migrator/legacy/cli.py b/invenio_migrator/legacy/cli.py
index <HASH>..<HASH> 100644
--- a/invenio_migrator/legacy/cli.py
+++ b/invenio_migrator/legacy/cli.py
@@ -70,8 +70,13 @@ def dump(thing, query, from_date, file_prefix, chunk_size, argument):
with open('{0}_{1}.json'.format(file_pr... | legacy: dumper cli resilience * Fixes issue with any error during dumping causing the dump process to stop. | py |
diff --git a/synapse/dyndeps.py b/synapse/dyndeps.py
index <HASH>..<HASH> 100644
--- a/synapse/dyndeps.py
+++ b/synapse/dyndeps.py
@@ -32,6 +32,26 @@ def getDynLocal(name):
return None
return getattr(mod,objname,None)
+def tryDynMod(name):
+ '''
+ Dynamically import a python module or exception.
+... | added try versions of some dyndeps APIs which raise on error | py |
diff --git a/pymatgen/io/ase.py b/pymatgen/io/ase.py
index <HASH>..<HASH> 100644
--- a/pymatgen/io/ase.py
+++ b/pymatgen/io/ase.py
@@ -125,7 +125,7 @@ class AseAtomsAdaptor:
# We start with trying to get the output magmoms.
# If those don't exist, see if the initial magmoms were set.
if (
- ... | More robust checking of attached calculator in ASE atoms | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,6 +4,7 @@ Gitpress
Blissful blogging for hackers.
+
Links
`````
@@ -14,9 +15,15 @@ Links
"""
import os
+import sys
from setuptools import setup, find_packages
+if sys.argv[-1] == 'publish':
+ os.system(... | Add publish shortcut to setup.py. | py |
diff --git a/hcam_widgets/misc.py b/hcam_widgets/misc.py
index <HASH>..<HASH> 100644
--- a/hcam_widgets/misc.py
+++ b/hcam_widgets/misc.py
@@ -263,8 +263,14 @@ def postJSON(g, data):
url = urllib.parse.urljoin(g.cpars['gtc_offset_server'], 'setup')
g.clog.debug('Offset Server URL = ' + url)
o... | better error messages if GTC offsetter is dead | py |
diff --git a/src/backends/make.py b/src/backends/make.py
index <HASH>..<HASH> 100644
--- a/src/backends/make.py
+++ b/src/backends/make.py
@@ -181,6 +181,9 @@ class MakeWriter(object):
out.write('\n\n')
def write(self, out):
+ # Don't let make use built-in suffix rules
+ out.write('.SUFFIX... | Remove make's built-in suffix rules | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,12 +10,12 @@ def read(fname):
setup(
name = "diyr",
- version = "0.0.1a1",
+ version = "0.0.1a2",
author = "Miguel Alex Cantu",
author_email = "miguel.can2@gmail.com ",
description = ("An inter... | Updated license and version in setup.py | py |
diff --git a/concentration/settings.py b/concentration/settings.py
index <HASH>..<HASH> 100644
--- a/concentration/settings.py
+++ b/concentration/settings.py
@@ -108,7 +108,11 @@ DISTRACTORS = {
"bbc.com",
"notalwaysright.com",
}
-CONFIG_DIRS = {"/etc", os.path.expanduser("~"), os.path.expanduser(f"~{os.get... | Try to work around OSError | py |
diff --git a/cli/libreant.py b/cli/libreant.py
index <HASH>..<HASH> 100644
--- a/cli/libreant.py
+++ b/cli/libreant.py
@@ -58,6 +58,7 @@ def libreant(settings, debug, port, address, fsdb_path, es_indexname, es_hosts,
raise
else:
click.secho(str(e), fg='yellow', err=True)
+ ... | [cli] libreant command exits with code 1 on exception Due to the reloader on debug mode the command will not exit, but it will print the exception and the relative stack trace fixes #<I> | py |
diff --git a/intranet/apps/eighth/views/admin/sponsors.py b/intranet/apps/eighth/views/admin/sponsors.py
index <HASH>..<HASH> 100644
--- a/intranet/apps/eighth/views/admin/sponsors.py
+++ b/intranet/apps/eighth/views/admin/sponsors.py
@@ -71,7 +71,7 @@ def list_sponsor_view(request):
for row in context["sp... | Remove Scheduled Activity Date Removes the scheduled activity date from sponsor list CSV. Replaces it with full_title. | py |
diff --git a/clam/config/textstats.py b/clam/config/textstats.py
index <HASH>..<HASH> 100644
--- a/clam/config/textstats.py
+++ b/clam/config/textstats.py
@@ -76,9 +76,11 @@ ADMINS = ['anonymous'] #Define which of the above users are admins (never set th
#It will look in several paths including the current working dir... | ensure textstats example also works without external configuration file (it is used as a simple demo case) | py |
diff --git a/client.py b/client.py
index <HASH>..<HASH> 100644
--- a/client.py
+++ b/client.py
@@ -156,11 +156,11 @@ class Client(object):
def connect_retry(self, url=None, token=None, tries=-1):
while tries != 0:
try:
- self.connect(url=url, token=token)
- break... | connect_retry returns True/False | py |
diff --git a/coolfig/providers.py b/coolfig/providers.py
index <HASH>..<HASH> 100644
--- a/coolfig/providers.py
+++ b/coolfig/providers.py
@@ -1,3 +1,7 @@
+import os
+from functools import partial
+
+
NOT_PROVIDED = object()
@@ -19,3 +23,6 @@ class DictConfig(ConfigurationProvider):
return self._conf_... | Added an EnvConfig provider | py |
diff --git a/luigi/hdfs.py b/luigi/hdfs.py
index <HASH>..<HASH> 100644
--- a/luigi/hdfs.py
+++ b/luigi/hdfs.py
@@ -689,7 +689,7 @@ in luigi. Use target.path instead", stacklevel=2)
# mkdir will fail if directory already exists, thereby ensuring atomicity
if isinstance(path, HdfsTarget):
p... | Make HdfsTarget.move_dir() atomic again As was said in the comments of that function, it relied on mkdir failing if the directory already exists. This was not explicit in the code unfortunately and the underlying behavior of mkdir() changed since move_dir() was written. | py |
diff --git a/python/dllib/src/bigdl/dllib/utils/nncontext.py b/python/dllib/src/bigdl/dllib/utils/nncontext.py
index <HASH>..<HASH> 100644
--- a/python/dllib/src/bigdl/dllib/utils/nncontext.py
+++ b/python/dllib/src/bigdl/dllib/utils/nncontext.py
@@ -59,7 +59,7 @@ def init_spark_on_yarn(hadoop_conf,
... | Update doc for orca context (#<I>) * update * add back * update * update * minor * meet review * fix typo | py |
diff --git a/salt/states/mount.py b/salt/states/mount.py
index <HASH>..<HASH> 100644
--- a/salt/states/mount.py
+++ b/salt/states/mount.py
@@ -120,8 +120,8 @@ def mounted(name,
if real_name in active:
device_list.append(active[real_name]['device'])
device_list.append(os.path.realpath(device_list[... | Don't rely blindly on the keys 'alt_device' and 'device_uuid'. This will cause failures on systems not providing these keys such as FreeBSD. | py |
diff --git a/instana/tracer.py b/instana/tracer.py
index <HASH>..<HASH> 100644
--- a/instana/tracer.py
+++ b/instana/tracer.py
@@ -4,10 +4,12 @@ import instana.recorder as r
import opentracing as ot
import instana.options as o
import instana.sensor as s
-import instana.propagator as tp
from basictracer.context im... | Adds standards Text and Binary propagators from basictracer | py |
diff --git a/reservations/reservations.py b/reservations/reservations.py
index <HASH>..<HASH> 100755
--- a/reservations/reservations.py
+++ b/reservations/reservations.py
@@ -378,7 +378,7 @@ def spider(last_pid):
all_pages.insert(0, parse_page(blogotubes(wobsite+page_num)))
lowest_pid = order_post... | Ignore already-done posts | py |
diff --git a/moban_handlebars/engine.py b/moban_handlebars/engine.py
index <HASH>..<HASH> 100644
--- a/moban_handlebars/engine.py
+++ b/moban_handlebars/engine.py
@@ -16,9 +16,8 @@ class EngineHandlebars(object):
self.template_dirs = template_dirs
def get_template(self, template_file):
- actual_f... | :hammer: code refactoring | py |
diff --git a/openquake/engine/tools/make_html_report.py b/openquake/engine/tools/make_html_report.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/tools/make_html_report.py
+++ b/openquake/engine/tools/make_html_report.py
@@ -186,10 +186,9 @@ def make_report(isodate='today'):
txt = view_fullreport('fu... | Removed a debugging raise | py |
diff --git a/sentry_sdk/integrations/_wsgi.py b/sentry_sdk/integrations/_wsgi.py
index <HASH>..<HASH> 100644
--- a/sentry_sdk/integrations/_wsgi.py
+++ b/sentry_sdk/integrations/_wsgi.py
@@ -197,7 +197,7 @@ class _ScopePoppingResponse(object):
try:
self._iterator = iter(self._response)
ex... | fix: Typo in _wsgi Fix #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -10,11 +10,11 @@ setup(
description='Nested resources for the Django Rest Framework',
long_description=open('README.md').read(),
license='Apache',
- version='0.1.3',
+ version='0.9.0',
author='Alan Ju... | Version bump, only for DRF >= <I> | py |
diff --git a/py/selenium/webdriver/remote/errorhandler.py b/py/selenium/webdriver/remote/errorhandler.py
index <HASH>..<HASH> 100644
--- a/py/selenium/webdriver/remote/errorhandler.py
+++ b/py/selenium/webdriver/remote/errorhandler.py
@@ -108,10 +108,7 @@ class ErrorHandler(object):
message = v... | Replace TypeError with KeyError in remote webdriver error handler code (#<I>) Update getting message to handle errors better. | py |
diff --git a/djstripe/models/account.py b/djstripe/models/account.py
index <HASH>..<HASH> 100644
--- a/djstripe/models/account.py
+++ b/djstripe/models/account.py
@@ -222,7 +222,7 @@ class Account(StripeModel):
pass
else:
raise
- exce... | Ignore AuthenticationError when saving Account model There's a chicken-and-egg issue which can arise when saving a non-default Account using an API key from the database (rather than the default one). We can semi-safely ignore the error. It's not ideal, but better than the alternative. | py |
diff --git a/measurement/measures/geometry.py b/measurement/measures/geometry.py
index <HASH>..<HASH> 100644
--- a/measurement/measures/geometry.py
+++ b/measurement/measures/geometry.py
@@ -120,7 +120,7 @@ class Area(AbstractMeasure, metaclass=AreaBase):
>>> measures.Area('6 m²') / measures.Distance('2 m')
... | Update geometry.py Missed this in the previous PR for docstring fixes. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -65,6 +65,11 @@ setup(name=NAME,
long_description=LONG_DESC,
license=LICENSE,
keywords=KEYWORDS,
+ entry_points={
+ 'console_scripts': [
+ 'python-futurize = libfuturize.main:mai... | Add console script for python-futurize to setup.py | py |
diff --git a/simple_history/admin.py b/simple_history/admin.py
index <HASH>..<HASH> 100644
--- a/simple_history/admin.py
+++ b/simple_history/admin.py
@@ -27,7 +27,7 @@ except AttributeError:
USER_NATURAL_KEY = tuple(key.lower() for key in USER_NATURAL_KEY.split('.', 1))
-class SimpleHistoryAdmin(admin.ModelAdmin)... | Treat ModelAdmin like an old python class | py |
diff --git a/stomp/connect.py b/stomp/connect.py
index <HASH>..<HASH> 100755
--- a/stomp/connect.py
+++ b/stomp/connect.py
@@ -307,7 +307,7 @@ class Connection(object):
else:
return 2
- def override_threading(create_thread_fc):
+ def override_threading(self, create_thread_fc):
... | incorrect signature on override_threading method | py |
diff --git a/dynaconf/validator.py b/dynaconf/validator.py
index <HASH>..<HASH> 100644
--- a/dynaconf/validator.py
+++ b/dynaconf/validator.py
@@ -6,7 +6,7 @@ class ValidationError(Exception):
pass
-class Validator:
+class Validator(object):
"""
Validators are conditions attached to settings variable... | Small Refactory - Fixing the __init__ signature to make it compatible with python2 and python3 - Adding object to the class to make Python2 work | py |
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index <HASH>..<HASH> 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -934,12 +934,12 @@ def get_site_dirs():
sys.version[:3],
... | Tweak site_dirs detection so that distros with weird layouts (e.g. /usr/lib<I> patches on <I>-bit Fedora) will have a better chance of working "out of the box". --HG-- branch : setuptools extra : convert_revision : svn%3A<I>fed2-<I>-<I>-9fe1-9d<I>cc<I>/sandbox/trunk/setuptools%<I> | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -151,7 +151,7 @@ html_theme = 'classic'
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_pat... | Fix error in figure path for ipython plots | py |
diff --git a/falafel/config/specs.py b/falafel/config/specs.py
index <HASH>..<HASH> 100644
--- a/falafel/config/specs.py
+++ b/falafel/config/specs.py
@@ -45,7 +45,7 @@ static_specs = {
"docker_image_inspect" : DockerHostCommandSpec("/usr/bin/docker inspect --type=image {DOCKER_IMAGE_NAME}"),
"docker_con... | Marking 'engine.log' as a large file | py |
diff --git a/synapse/lib/service.py b/synapse/lib/service.py
index <HASH>..<HASH> 100644
--- a/synapse/lib/service.py
+++ b/synapse/lib/service.py
@@ -126,11 +126,7 @@ class SvcProxy:
if svcfo == None:
return
- tags = list(svcfo[1].get('tags',()))
-
- tags.append( svcfo[1].get('nam... | derp bugfix for svc init event | py |
diff --git a/allauth/socialaccount/providers/oauth2/views.py b/allauth/socialaccount/providers/oauth2/views.py
index <HASH>..<HASH> 100644
--- a/allauth/socialaccount/providers/oauth2/views.py
+++ b/allauth/socialaccount/providers/oauth2/views.py
@@ -80,7 +80,7 @@ class OAuth2View(object):
callback_url = self.... | fix(providers/untappd): client_class was not used properly | py |
diff --git a/zounds/spectral/functional.py b/zounds/spectral/functional.py
index <HASH>..<HASH> 100644
--- a/zounds/spectral/functional.py
+++ b/zounds/spectral/functional.py
@@ -14,6 +14,7 @@ from scipy.signal import resample, firwin2
from matplotlib import cm
from zounds.nputil import sliding_window
from scipy.sig... | Changes to FIR filter bank to truncate frequency bands if less than zero or greater than the nyquist frequency | py |
diff --git a/stanza/utils/datasets/process_best.py b/stanza/utils/datasets/process_best.py
index <HASH>..<HASH> 100644
--- a/stanza/utils/datasets/process_best.py
+++ b/stanza/utils/datasets/process_best.py
@@ -7,6 +7,13 @@ Note that the version of BEST we used actually had some strange
sentence splits according to a ... | Add a tiny bit more doc to the process_best script | py |
diff --git a/py/h2o.py b/py/h2o.py
index <HASH>..<HASH> 100644
--- a/py/h2o.py
+++ b/py/h2o.py
@@ -1053,6 +1053,7 @@ class H2O(object):
if self.java_heap_GB is not None:
if (1 > self.java_heap_GB > 63):
raise Exception('java_heap_GB <1 or >63 (GB): %s' % (self.java_heap_GB))
+ ... | apparently tomas says we need Xms specified also for java heap? seeing parse hangs | py |
diff --git a/asammdf/gui/widgets/file.py b/asammdf/gui/widgets/file.py
index <HASH>..<HASH> 100644
--- a/asammdf/gui/widgets/file.py
+++ b/asammdf/gui/widgets/file.py
@@ -93,6 +93,17 @@ class FileWidget(Ui_file_widget, QtWidgets.QWidget):
except:
print(format_exc())
return... | open zipped mf4 files | py |
diff --git a/pylibdmtx/wrapper.py b/pylibdmtx/wrapper.py
index <HASH>..<HASH> 100644
--- a/pylibdmtx/wrapper.py
+++ b/pylibdmtx/wrapper.py
@@ -1,6 +1,7 @@
"""Low-level wrapper around libdmtx's interface
"""
import platform
+import sys
from ctypes import (
addressof, cdll, c_char_p, c_double, c_int, c_long, c_... | Untested support for frozen binaries on Windows | py |
diff --git a/moto/route53/responses.py b/moto/route53/responses.py
index <HASH>..<HASH> 100644
--- a/moto/route53/responses.py
+++ b/moto/route53/responses.py
@@ -86,7 +86,7 @@ LIST_RRSET_REPONSE = """<ListResourceRecordSetsResponse xmlns="https://route53.a
CHANGE_RRSET_RESPONSE = """<ChangeResourceRecordSetsRespons... | Report route<I> changes immediately as INSYNC. This avoids leaving changes in a perennial PENDING limbo. | py |
diff --git a/django_select2/util.py b/django_select2/util.py
index <HASH>..<HASH> 100644
--- a/django_select2/util.py
+++ b/django_select2/util.py
@@ -51,7 +51,7 @@ def render_js_script(inner_code):
This wraps ``inner_code`` string inside the following code block::
<script type="text/javascript">
- ... | Do not assume that jQuery is bound to $ variable. | py |
diff --git a/pyaxiom/__init__.py b/pyaxiom/__init__.py
index <HASH>..<HASH> 100644
--- a/pyaxiom/__init__.py
+++ b/pyaxiom/__init__.py
@@ -1,4 +1,4 @@
-__version__ = "0.0.9"
+__version__ = "0.0.10-dev"
# Package level logger
import logging | Bump to <I>-dev | py |
diff --git a/gnosis/eth/utils.py b/gnosis/eth/utils.py
index <HASH>..<HASH> 100644
--- a/gnosis/eth/utils.py
+++ b/gnosis/eth/utils.py
@@ -65,11 +65,12 @@ def decode_string_or_bytes32(data: bytes) -> str:
def remove_swarm_metadata(code: bytes) -> bytes:
"""
Remove swarm metadata from Solidity bytecode
+
... | Fix proxy validation vulnerability Other contracts could be injected. Take a look at <URL> | py |
diff --git a/flasgger/utils.py b/flasgger/utils.py
index <HASH>..<HASH> 100644
--- a/flasgger/utils.py
+++ b/flasgger/utils.py
@@ -108,7 +108,10 @@ def get_specs(rules, ignore_verbs, optional_fields, sanitizer, doc_dir=None):
swagged = False
if getattr(method, 'specs_dict', None):
- ... | Support Marshmallow Schemas in Function Based Views | py |
diff --git a/tests/test_conversions.py b/tests/test_conversions.py
index <HASH>..<HASH> 100644
--- a/tests/test_conversions.py
+++ b/tests/test_conversions.py
@@ -1,4 +1,4 @@
-from markdownify import markdownify as md
+from markdownify import markdownify as md, ATX, ATX_CLOSED
def test_a():
@@ -54,6 +54,16 @@ def ... | Test ATX and ATX_CLOSED style headings | py |
diff --git a/glad/lang/pascal/generator.py b/glad/lang/pascal/generator.py
index <HASH>..<HASH> 100644
--- a/glad/lang/pascal/generator.py
+++ b/glad/lang/pascal/generator.py
@@ -180,7 +180,7 @@ class PascalGenerator(Generator):
EXT_PREFIX = 'GLAD_'
def open(self):
- self._f_gl = open(self.make_path(... | pascal: add "glad_" prefix to the generated unit to allow combining with fpc's gl.pas | py |
diff --git a/stellar_sdk/transaction_envelope.py b/stellar_sdk/transaction_envelope.py
index <HASH>..<HASH> 100644
--- a/stellar_sdk/transaction_envelope.py
+++ b/stellar_sdk/transaction_envelope.py
@@ -5,7 +5,7 @@ from .keypair import Keypair
from .network import Network
from .xdr import Xdr
from .transaction impor... | refactor: TransactionEnvelope.sign_hashx accepts hex encoded string | py |
diff --git a/SpiffWorkflow/dmn/parser/DMNParser.py b/SpiffWorkflow/dmn/parser/DMNParser.py
index <HASH>..<HASH> 100644
--- a/SpiffWorkflow/dmn/parser/DMNParser.py
+++ b/SpiffWorkflow/dmn/parser/DMNParser.py
@@ -178,7 +178,7 @@ class DMNParser(object):
if cls == InputEntry:
entry.lhs.append(entry.t... | Don't throw an error if entry.text is None. | py |
diff --git a/examples.py b/examples.py
index <HASH>..<HASH> 100644
--- a/examples.py
+++ b/examples.py
@@ -196,7 +196,7 @@ def animated_marker():
@example
def counter_and_timer():
- widgets = ['Processed: ', progressbar.Counter(),
+ widgets = ['Processed: ', progressbar.Counter('Counter: %(value)05d'),
... | explained #<I> a bit | py |
diff --git a/pingouin/pairwise.py b/pingouin/pairwise.py
index <HASH>..<HASH> 100644
--- a/pingouin/pairwise.py
+++ b/pingouin/pairwise.py
@@ -21,11 +21,11 @@ def _append_stats_dataframe(stats, x, y, xlabel, ylabel, alpha, paired, tail,
stats = stats.append({
'A': xlabel,
'B': ylabel,
- 'm... | Use nanmean in pairwise_ttests when return_desc=True | py |
diff --git a/audioread/ffdec.py b/audioread/ffdec.py
index <HASH>..<HASH> 100644
--- a/audioread/ffdec.py
+++ b/audioread/ffdec.py
@@ -258,6 +258,12 @@ class FFmpegAudioFile(object):
def close(self):
"""Close the ffmpeg process used to perform the decoding."""
+ # Check the process's execution st... | Fixes `subprocess` exception on WSL This fixes issue #<I> regarding `self.proc.kill()` when running on Windows Subsystem for Linux. On WSL, ffmpeg is terminating normally, but `returncode` isn't being updated. Calling `poll()` on the subprocess returns immediately and forces an update of `returncode`. This allows t... | py |
diff --git a/pyforms/gui/Controls/ControlPlayer/ControlPlayer.py b/pyforms/gui/Controls/ControlPlayer/ControlPlayer.py
index <HASH>..<HASH> 100755
--- a/pyforms/gui/Controls/ControlPlayer/ControlPlayer.py
+++ b/pyforms/gui/Controls/ControlPlayer/ControlPlayer.py
@@ -148,7 +148,7 @@ class ControlPlayer(ControlBase, QtGu... | pep8 compliance Avoid this message: "FutureWarning: comparison to `None` will result in an elementwise object comparison in the future. if last_image == None:" | py |
diff --git a/tests/test_form.py b/tests/test_form.py
index <HASH>..<HASH> 100644
--- a/tests/test_form.py
+++ b/tests/test_form.py
@@ -373,6 +373,21 @@ class FormTestCase(unittest.TestCase):
head[:7] == 'ParFORM'
)
+ def test_environ(self):
+ """Test for $FORM."""
+ impo... | [test] Add a test for $FORM This feature was introduced in bc<I>b<I>. | py |
diff --git a/lib/websearch_webcoll.py b/lib/websearch_webcoll.py
index <HASH>..<HASH> 100644
--- a/lib/websearch_webcoll.py
+++ b/lib/websearch_webcoll.py
@@ -602,7 +602,7 @@ class Collection:
values = [{'value' : '', 'text' : get_field_i18nname("any field", ln)}]
if res:
for row in res:
... | Fix language Vs field treatment in create_searchwithin_selection_box. | py |
diff --git a/octodns/provider/ultra.py b/octodns/provider/ultra.py
index <HASH>..<HASH> 100644
--- a/octodns/provider/ultra.py
+++ b/octodns/provider/ultra.py
@@ -1,5 +1,4 @@
from collections import defaultdict
-from ipaddress import ip_address
from logging import getLogger
from requests import Session
@@ -196,8 +... | No need to normalize IPv6 values in ultra now that they are by default | py |
diff --git a/pandas/core/common.py b/pandas/core/common.py
index <HASH>..<HASH> 100644
--- a/pandas/core/common.py
+++ b/pandas/core/common.py
@@ -449,7 +449,11 @@ def pad_2d(values, limit=None, mask=None):
mask = isnull(values)
mask = mask.view(np.uint8)
- _method(values, mask, limit=limit)
+ if ... | BUG: avoid out-of-bounds access in pad_2d/backfill_2d causing segfault | py |
diff --git a/openquake/job/__init__.py b/openquake/job/__init__.py
index <HASH>..<HASH> 100644
--- a/openquake/job/__init__.py
+++ b/openquake/job/__init__.py
@@ -330,6 +330,7 @@ class Job(object):
data_file.seek(0)
kvs_client.set(sha1, data_file.read())
se... | Store the original file name in parameter, to report it in error messages. | py |
diff --git a/discord/gateway.py b/discord/gateway.py
index <HASH>..<HASH> 100644
--- a/discord/gateway.py
+++ b/discord/gateway.py
@@ -522,7 +522,7 @@ class DiscordWebSocket:
if self._can_handle_close():
log.info('Websocket closed with %s, attempting a reconnect.', code)
r... | Terminate connection if a close code couldn't be handled | py |
diff --git a/compiler/ts.py b/compiler/ts.py
index <HASH>..<HASH> 100644
--- a/compiler/ts.py
+++ b/compiler/ts.py
@@ -81,6 +81,24 @@ class Message(object):
src.text = self.source
self.translation.save(msg)
+ def __eq__(self, other):
+ return (self.source == other.source)
+
+ def __ne__(self, other):
+ return... | Added explicit comparison functions to sort 'Message' objects using Python 3. | py |
diff --git a/openquake/engine/performance.py b/openquake/engine/performance.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/performance.py
+++ b/openquake/engine/performance.py
@@ -163,6 +163,7 @@ class EnginePerformanceMonitor(PerformanceMonitor):
super(EnginePerformanceMonitor, self).__enter__()
... | Fixed also a bug in the PerformanceMonitor Former-commit-id: e<I>e4b<I>bbab<I>a6d<I>a<I>bf<I>f<I>aa<I>cb | py |
diff --git a/blti/urls.py b/blti/urls.py
index <HASH>..<HASH> 100644
--- a/blti/urls.py
+++ b/blti/urls.py
@@ -1,8 +1,7 @@
-from django.conf.urls import patterns, url, include
+from django.conf.urls import url
from blti.views import RawBLTIView
-urlpatterns = patterns(
- '',
+urlpatterns = [
url(r'^$', Raw... | drop patterns from urls.py | py |
diff --git a/plugs_mail/management/commands/load_email_templates.py b/plugs_mail/management/commands/load_email_templates.py
index <HASH>..<HASH> 100644
--- a/plugs_mail/management/commands/load_email_templates.py
+++ b/plugs_mail/management/commands/load_email_templates.py
@@ -114,7 +114,7 @@ class Command(BaseCommand... | adds template file path to exception when language code is incorrect | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,10 +1,9 @@
# -*- coding: UTF-8 -*-
from distutils.core import setup
from setuptools import find_packages
-import time
-_version = "0.1.dev%s" % int(time.time())
+_version = "0.1"
_packages = find_packages(exclude=["... | Setting version back to <I> after stupid merge | py |
diff --git a/pythonforandroid/recommendations.py b/pythonforandroid/recommendations.py
index <HASH>..<HASH> 100644
--- a/pythonforandroid/recommendations.py
+++ b/pythonforandroid/recommendations.py
@@ -60,8 +60,11 @@ def read_ndk_version(ndk_dir):
MIN_TARGET_API = 26
-RECOMMENDED_TARGET_API = 27 # highest versio... | Rearranged comment to keep flake8 happy I don't think this kind of change is a good one for the ci to catch, the original comment structure was fine. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,7 @@ import subprocess
from setuptools import setup, find_packages
#####################################
-VERSION = "0.8.0"
+VERSION = "0.8.1"
ISRELEASED = True
if ISRELEASED:
__version__ = VERSION | Bump to version <I> | py |
diff --git a/openid/consumer/consumer.py b/openid/consumer/consumer.py
index <HASH>..<HASH> 100644
--- a/openid/consumer/consumer.py
+++ b/openid/consumer/consumer.py
@@ -17,9 +17,8 @@ OVERVIEW
1. The user enters their OpenID into a field on the consumer's
site, and hits a login button.
- ... | [project @ Update docs to describe how yadis is used] | py |
diff --git a/fireplace/cards/classic/warrior.py b/fireplace/cards/classic/warrior.py
index <HASH>..<HASH> 100644
--- a/fireplace/cards/classic/warrior.py
+++ b/fireplace/cards/classic/warrior.py
@@ -70,8 +70,8 @@ class EX1_391:
# Battle Rage
class EX1_392:
def action(self):
- count = len(t for t in self.controller... | Filter on Character.damaged in Battle Rage | py |
diff --git a/ftr/version.py b/ftr/version.py
index <HASH>..<HASH> 100644
--- a/ftr/version.py
+++ b/ftr/version.py
@@ -1,2 +1,2 @@
-version = '0.8.2'
+version = '0.9' | version bump for <I>. | py |
diff --git a/collatex-pythonport/collatex/core_functions.py b/collatex-pythonport/collatex/core_functions.py
index <HASH>..<HASH> 100644
--- a/collatex-pythonport/collatex/core_functions.py
+++ b/collatex-pythonport/collatex/core_functions.py
@@ -26,6 +26,7 @@ def collate(collation, output="table", layout="horizontal",... | Add comment about expected data type of input | py |
diff --git a/test_suite.py b/test_suite.py
index <HASH>..<HASH> 100644
--- a/test_suite.py
+++ b/test_suite.py
@@ -117,7 +117,7 @@ def test_qgis3():
test_package('safe.utilities')
test_package('safe.common')
test_package('safe.gis')
- #test_package('safe.gui')
+ test_package('safe.gui')
if __n... | Enable gui tests on travis | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ from setuptools import find_packages, setup
setup_args = dict(
name='furious',
- version='0.1',
+ version='0.9',
license='Apache',
description='Furious is a lightweight library that wraps G... | Increment the version to <I> and set to beta. Getting close to stable and <I> release. | py |
diff --git a/server/api/rest.py b/server/api/rest.py
index <HASH>..<HASH> 100644
--- a/server/api/rest.py
+++ b/server/api/rest.py
@@ -25,6 +25,9 @@ class Resource(ModelImporter):
exposed = True
def __init__(self):
+ self._currentUser = None
+ self._setupCurrentUser = False
+
self.ini... | Lazy getter for current session user. | py |
diff --git a/tests/test_features.py b/tests/test_features.py
index <HASH>..<HASH> 100644
--- a/tests/test_features.py
+++ b/tests/test_features.py
@@ -546,7 +546,7 @@ def test_tempogram_odf():
eq_(tempogram.shape[1], len(odf))
# Mean over time to wash over the boundary padding effects
- idx =... | removed call to core.localmax in tempogram test | py |
diff --git a/nidmresults/exporter.py b/nidmresults/exporter.py
index <HASH>..<HASH> 100644
--- a/nidmresults/exporter.py
+++ b/nidmresults/exporter.py
@@ -21,6 +21,7 @@ import uuid
import csv
import tempfile
import zipfile
+from builtins import input
class NIDMExporter():
@@ -47,7 +48,7 @@ class NIDMExporter():... | python 2 and 3 compatibility for input/raw_input | py |
diff --git a/keyboard/_winkeyboard.py b/keyboard/_winkeyboard.py
index <HASH>..<HASH> 100644
--- a/keyboard/_winkeyboard.py
+++ b/keyboard/_winkeyboard.py
@@ -376,7 +376,7 @@ def listen(queue):
if vk in reversed_extended_keys and is_extended:
is_keypad = True
else:... | Fix bug where keys without VK weren`t processed in Windows | py |
diff --git a/salt/state.py b/salt/state.py
index <HASH>..<HASH> 100644
--- a/salt/state.py
+++ b/salt/state.py
@@ -52,6 +52,8 @@ STATE_INTERNAL_KEYWORDS = frozenset([
'require',
'require_in',
'onfail',
+ 'onchanges',
+ 'use',
'fail_hard',
'reload_modules',
'saltenv', | Add more requisites to STATE_INTERNAL_KEYWORDS. | py |
diff --git a/requests_ntlm/requests_ntlm.py b/requests_ntlm/requests_ntlm.py
index <HASH>..<HASH> 100644
--- a/requests_ntlm/requests_ntlm.py
+++ b/requests_ntlm/requests_ntlm.py
@@ -55,9 +55,8 @@ class HttpNtlmAuth(AuthBase):
# get the challenge
auth_header_value = response2.headers[auth_header_fie... | Pick only the NTLM challenge from the auth cookie | py |
diff --git a/tests/testapp/management/commands/test_email_notification_command.py b/tests/testapp/management/commands/test_email_notification_command.py
index <HASH>..<HASH> 100644
--- a/tests/testapp/management/commands/test_email_notification_command.py
+++ b/tests/testapp/management/commands/test_email_notification_... | add coding: utf-8 | py |
diff --git a/lib/svtplay_dl/service/kanal5.py b/lib/svtplay_dl/service/kanal5.py
index <HASH>..<HASH> 100644
--- a/lib/svtplay_dl/service/kanal5.py
+++ b/lib/svtplay_dl/service/kanal5.py
@@ -61,11 +61,11 @@ class Kanal5(Service):
if data["hasSubtitle"]:
yield subtitle_json("http://www.kanal5play.s... | kanal5: We only see streamBaseUrl on RTMP | py |
diff --git a/datajoint/external.py b/datajoint/external.py
index <HASH>..<HASH> 100644
--- a/datajoint/external.py
+++ b/datajoint/external.py
@@ -81,7 +81,7 @@ class ExternalTable(BaseRelation):
os.makedirs(folder)
safe_write(full_path, blob)
elif protocol == 's3':
- ... | datajoint/external.py: fix blob->blob_hash in s3 calls. | py |
diff --git a/rest_framework_json_api/metadata.py b/rest_framework_json_api/metadata.py
index <HASH>..<HASH> 100644
--- a/rest_framework_json_api/metadata.py
+++ b/rest_framework_json_api/metadata.py
@@ -119,4 +119,15 @@ class JSONAPIMetadata(SimpleMetadata):
elif getattr(field, 'fields', None):
fi... | Choicefields should have choices in metadata | py |
diff --git a/salt/fileserver/roots.py b/salt/fileserver/roots.py
index <HASH>..<HASH> 100644
--- a/salt/fileserver/roots.py
+++ b/salt/fileserver/roots.py
@@ -172,7 +172,7 @@ def update():
mtime_map_path,
line,
)
- except OSError:
+ except (OS... | Failed to load /var/cache/salt/minion/roots/mtime_map when it contains invalid UTF-8 data. UTF-8 encoding was forced by <URL> | py |
diff --git a/raiden/network/rpc/client.py b/raiden/network/rpc/client.py
index <HASH>..<HASH> 100644
--- a/raiden/network/rpc/client.py
+++ b/raiden/network/rpc/client.py
@@ -441,7 +441,7 @@ class JSONRPCClient:
tx_hash = self.web3.eth.sendRawTransaction(signed_txn.rawTransaction)
self._availa... | Improve logging in send_raw_transaction [no ci integration] | py |
diff --git a/h2o-py/h2o/job.py b/h2o-py/h2o/job.py
index <HASH>..<HASH> 100644
--- a/h2o-py/h2o/job.py
+++ b/h2o-py/h2o/job.py
@@ -162,7 +162,7 @@ class H2OJob(object):
progress_pct = int(100 * self.progress + 0.5)
else:
progress_pct = int(display_amount / self._progress_b... | Sometimes sys.stdout.encoding is None, need to guard against that | py |
diff --git a/src/foundations/library.py b/src/foundations/library.py
index <HASH>..<HASH> 100644
--- a/src/foundations/library.py
+++ b/src/foundations/library.py
@@ -75,7 +75,7 @@ class Library(object):
"""
librariesInstances = {}
- """Libraries instances: Each library is instancied once and stored in this attri... | Update "library" module docstrings. | py |
diff --git a/django_productline/features/staticfiles/tasks.py b/django_productline/features/staticfiles/tasks.py
index <HASH>..<HASH> 100644
--- a/django_productline/features/staticfiles/tasks.py
+++ b/django_productline/features/staticfiles/tasks.py
@@ -2,7 +2,7 @@ from ape import tasks
@tasks.register
@tasks.requ... | renamed prepare_static_files to collectstatic and refined deploy to invoke collectstatic | py |
diff --git a/fabfile.py b/fabfile.py
index <HASH>..<HASH> 100644
--- a/fabfile.py
+++ b/fabfile.py
@@ -327,7 +327,7 @@ def backup(withFiles=True):
@task
-def deploy():
+def deploy(resetAfterwards=True):
check_config()
branch = env.config['branch']
@@ -349,7 +349,8 @@ def deploy():
run_custom(env.confi... | add option to not run reset-task after deployment | py |
diff --git a/misc/git-hooks/pre-receive.py b/misc/git-hooks/pre-receive.py
index <HASH>..<HASH> 100755
--- a/misc/git-hooks/pre-receive.py
+++ b/misc/git-hooks/pre-receive.py
@@ -12,5 +12,5 @@ timeout = 1800
try:
f = urllib2.urlopen("{0}/apps/{1}/avaliable".format(tsuru_host, app_name), timeout=timeout)
except u... | misc/git-hooks/pre-receive: print failure to stderr | py |
diff --git a/sos/plugins/grafana.py b/sos/plugins/grafana.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/grafana.py
+++ b/sos/plugins/grafana.py
@@ -21,7 +21,7 @@ class Grafana(Plugin, RedHatPlugin):
def setup(self):
if self.get_option("all_logs"):
- self.add_copy_spec("/var/log/grafana/*.l... | [grafana] all_logs to collect all log files not only *.log ones Resolves: #<I> | py |
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index <HASH>..<HASH> 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -1917,13 +1917,17 @@ class Cmd(cmd.Cmd):
:return: parsed command line as a Statement
"""
used_macros = []
- orig_line = line
+ orig_line = None
# Continue unt... | Fixed issue where input line was being saved before all of a multiline command had been fully read | py |
diff --git a/indra/assemblers/pybel/assembler.py b/indra/assemblers/pybel/assembler.py
index <HASH>..<HASH> 100644
--- a/indra/assemblers/pybel/assembler.py
+++ b/indra/assemblers/pybel/assembler.py
@@ -8,7 +8,10 @@ import pybel
import pybel.constants as pc
from pybel.dsl import *
from pybel.language import pmod_nam... | Handle location change of citation_dict According to <URL> | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.