diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -36,8 +36,8 @@ class InstallStyles(install): install.run(self) def get_version(): - VERSIONFILE = os.path.join('arviz', '__init__.py') - lines = open(VERSIONFILE, 'rt').readlines() + versionfile = os.path....
Branch for release (#<I>)
py
diff --git a/spyder/widgets/variableexplorer/dataframeeditor.py b/spyder/widgets/variableexplorer/dataframeeditor.py index <HASH>..<HASH> 100644 --- a/spyder/widgets/variableexplorer/dataframeeditor.py +++ b/spyder/widgets/variableexplorer/dataframeeditor.py @@ -45,7 +45,7 @@ COMPLEX_NUMBER_TYPES = (complex, np.complex...
Default float format change Edited default float format, according to previous change in array editor.
py
diff --git a/vevent.py b/vevent.py index <HASH>..<HASH> 100644 --- a/vevent.py +++ b/vevent.py @@ -22,10 +22,10 @@ class vEvent(vObject): value = self.getDuration(attr.replace('_', '-')) elif attr in self.ATTR_CONTENT: value = self.getContent(attr) + else: + raise At...
Raise AttributeError for unsupported attribute
py
diff --git a/tests/test_assess_bootstrap.py b/tests/test_assess_bootstrap.py index <HASH>..<HASH> 100644 --- a/tests/test_assess_bootstrap.py +++ b/tests/test_assess_bootstrap.py @@ -43,9 +43,12 @@ class TestAssessBootstrap(FakeHomeTestCase): def assess_boostrap_cxt(self): call_cxt = patch('subprocess.cal...
Avoid asserting on jujupy specifics in test_assess_bootstrap
py
diff --git a/cobe/model.py b/cobe/model.py index <HASH>..<HASH> 100644 --- a/cobe/model.py +++ b/cobe/model.py @@ -67,14 +67,7 @@ class Model(object): self.tokens.load(self._prefix_items("t/", skip_prefix=True)) def _add_count(self, batch, key, value): - count = 0 - - # This would be nicer...
Use the new default kwarg on LevelDB.Get for ngram counts Avoiding the exception on Get() misses is a performance improvement. Support for this was added in py-leveldb revision r<I>.
py
diff --git a/salt/modules/btrfs.py b/salt/modules/btrfs.py index <HASH>..<HASH> 100644 --- a/salt/modules/btrfs.py +++ b/salt/modules/btrfs.py @@ -166,3 +166,25 @@ def defragment(path): result.append(d_res) return result + + +def mkfs_features(): + ''' + List currently available BTRFS features. + ...
Added available BTRFS features for mkfs
py
diff --git a/singularity/build.py b/singularity/build.py index <HASH>..<HASH> 100644 --- a/singularity/build.py +++ b/singularity/build.py @@ -174,8 +174,8 @@ def run_build(build_dir=None,spec_file=None,repo_url=None,token=None,size=None,b build_dir=build_dir) # Compress imag...
editing build to generate compressed image, not compressed tar
py
diff --git a/optlang/interface.py b/optlang/interface.py index <HASH>..<HASH> 100644 --- a/optlang/interface.py +++ b/optlang/interface.py @@ -709,7 +709,7 @@ class Model(object): constraint_id = constraint.name if sloppy is False: for var in constraint.variables: - if var....
Check if variable is already in model by variable.problem is not self instead of doing a lookup in model.variables
py
diff --git a/chef/lib/chef/provider/package/yum-dump.py b/chef/lib/chef/provider/package/yum-dump.py index <HASH>..<HASH> 100644 --- a/chef/lib/chef/provider/package/yum-dump.py +++ b/chef/lib/chef/provider/package/yum-dump.py @@ -65,14 +65,14 @@ try: y.log = __log y.errorlog = __log - # Yum ...
CHEF-<I>: Don't set the same option twice.
py
diff --git a/ziggurat_foundations/models.py b/ziggurat_foundations/models.py index <HASH>..<HASH> 100644 --- a/ziggurat_foundations/models.py +++ b/ziggurat_foundations/models.py @@ -154,10 +154,10 @@ class UserMixin(BaseModel): ) @property - def permissions(self, db_session=None)...
remove leftover argument from one of @property decorated methods
py
diff --git a/coconut/root.py b/coconut/root.py index <HASH>..<HASH> 100644 --- a/coconut/root.py +++ b/coconut/root.py @@ -27,9 +27,9 @@ import sys # CONSTANTS: #----------------------------------------------------------------------------------------------------------------------- -VERSION = "0.3.5" -VERSION_NAME =...
Sets version to <I>
py
diff --git a/txt2boil/version.py b/txt2boil/version.py index <HASH>..<HASH> 100644 --- a/txt2boil/version.py +++ b/txt2boil/version.py @@ -1 +1 @@ -version = '' +version = '0.6.2'
Bumped version number to <I>
py
diff --git a/salt/utils/raetevent.py b/salt/utils/raetevent.py index <HASH>..<HASH> 100644 --- a/salt/utils/raetevent.py +++ b/salt/utils/raetevent.py @@ -207,9 +207,10 @@ class SaltEvent(object): pass def destroy(self): - self.stack.server.close() - self.stack.clearLocal() - ...
only destroy the stack if we need to
py
diff --git a/socketio/protocol.py b/socketio/protocol.py index <HASH>..<HASH> 100644 --- a/socketio/protocol.py +++ b/socketio/protocol.py @@ -79,7 +79,7 @@ class SocketIOProtocol(object): return encoded_msg def decode(self, data): - data.encode('utf-8', 'replace') + data.encode('utf-8', '...
fix rare utf-8 encoding issue
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ using a package manager (apt, yum, etc), normally named: python-setuptools INSTALL_REQUIRES = ( 'gevent>1', - 'paramiko>1,<3', + 'paramiko>=2.2,<3', # 2.2 (2017) adds Ed25519Key 'click>2', ...
Bump minimum paramiko version to <I>.
py
diff --git a/trunk/metpy/vis/plots.py b/trunk/metpy/vis/plots.py index <HASH>..<HASH> 100644 --- a/trunk/metpy/vis/plots.py +++ b/trunk/metpy/vis/plots.py @@ -244,7 +244,12 @@ def meteogram(data, fig=None, num_panels=3, time_range=None, ticker=None, for tick in ax.yaxis.get_major_ticks(): ...
Change how the timezone name is found so that it can correctly print depending on whether it is daylight savings time or not. git-svn-id: <URL>
py
diff --git a/py3status/__init__.py b/py3status/__init__.py index <HASH>..<HASH> 100755 --- a/py3status/__init__.py +++ b/py3status/__init__.py @@ -1007,8 +1007,7 @@ class Module(Thread): 'full_text': '' }, 'method': m...
qa: cleanup obsolete position handling and validation
py
diff --git a/rope/base/taskhandle.py b/rope/base/taskhandle.py index <HASH>..<HASH> 100644 --- a/rope/base/taskhandle.py +++ b/rope/base/taskhandle.py @@ -17,7 +17,6 @@ class BaseJobSet(ABC): def check_status(self) -> None: pass - @abstractmethod @utils.deprecated('Just use JobSet.job_name attri...
Don't require implementation of deprecated methods
py
diff --git a/odl/solvers/functional/default_functionals.py b/odl/solvers/functional/default_functionals.py index <HASH>..<HASH> 100644 --- a/odl/solvers/functional/default_functionals.py +++ b/odl/solvers/functional/default_functionals.py @@ -1495,7 +1495,7 @@ class SeparableSum(Functional): def __repr__(self): ...
BUG: Fix repr of SeparableSum
py
diff --git a/artifacts/definitions.py b/artifacts/definitions.py index <HASH>..<HASH> 100644 --- a/artifacts/definitions.py +++ b/artifacts/definitions.py @@ -4,6 +4,7 @@ # The type indictor constants. TYPE_INDICATOR_ARTIFACT = 'ARTIFACT' TYPE_INDICATOR_COMMAND = 'COMMAND' +TYPE_INDICATOR_DIRECTORY = 'DIRECTORY' TY...
updated darwin.yaml and definitions.py after comments review
py
diff --git a/custodian/custodian.py b/custodian/custodian.py index <HASH>..<HASH> 100644 --- a/custodian/custodian.py +++ b/custodian/custodian.py @@ -58,7 +58,7 @@ class Custodian(object): "Starting job no. {} ({}) attempt no. {}. Errors thus far" " = {}.".format(i + 1, job.na...
Bug fix for custodian.
py
diff --git a/jarn/mkrelease/process.py b/jarn/mkrelease/process.py index <HASH>..<HASH> 100644 --- a/jarn/mkrelease/process.py +++ b/jarn/mkrelease/process.py @@ -27,5 +27,7 @@ class Process(object): def os_system(self, cmd): if self.quiet: cmd = cmd + ' >%s 2>&1' % os.devnull + if sel...
Pass the environment to commands run with os_system.
py
diff --git a/main.py b/main.py index <HASH>..<HASH> 100644 --- a/main.py +++ b/main.py @@ -154,11 +154,11 @@ def check_interfaces(): def pre_start(): try: - #oper = platform.linux_distribution() - #if oper[0].lower()=='ubuntu' and oper[2].lower()=='trusty': - #trusty patch + # oper = platform.linux_distribu...
Applied the hostapd workaround to all distros.
py
diff --git a/django_services/service/exceptions.py b/django_services/service/exceptions.py index <HASH>..<HASH> 100644 --- a/django_services/service/exceptions.py +++ b/django_services/service/exceptions.py @@ -5,8 +5,8 @@ class ApplicationException(Exception): def __init__(self, *args, **kwargs): if len(...
fix when message on ApplicationException where passed as named argument
py
diff --git a/lib/python/vdm/server/HTTPListener.py b/lib/python/vdm/server/HTTPListener.py index <HASH>..<HASH> 100644 --- a/lib/python/vdm/server/HTTPListener.py +++ b/lib/python/vdm/server/HTTPListener.py @@ -923,7 +923,7 @@ class DatabaseAPI(MethodView): databases = [v if type(v) is list else [v] for v in...
VMC-<I>: Fixed issue with VDM giving wrong status code when creating duplicate database (#<I>)
py
diff --git a/nodeshot/scripts/read_olsr_topology.py b/nodeshot/scripts/read_olsr_topology.py index <HASH>..<HASH> 100755 --- a/nodeshot/scripts/read_olsr_topology.py +++ b/nodeshot/scripts/read_olsr_topology.py @@ -157,14 +157,17 @@ if __name__ == "__main__": l.etx = etx ...
read olsr topology now is fine. The problem was in the db.
py
diff --git a/pytradfri/const.py b/pytradfri/const.py index <HASH>..<HASH> 100644 --- a/pytradfri/const.py +++ b/pytradfri/const.py @@ -25,6 +25,7 @@ ATTR_GATEWAY_TIME_SOURCE = "9071" ATTR_GATEWAY_UPDATE_PROGRESS = "9055" ATTR_HOMEKIT_ID = "9083" +ATTR_HS_LINK = "15002" ATTR_ID = "9003" ATTR_LAST_SEEN = "9020" @...
Update const.py (#<I>) Adding a few constants I found laying about.
py
diff --git a/bcbio/pipeline/sample.py b/bcbio/pipeline/sample.py index <HASH>..<HASH> 100644 --- a/bcbio/pipeline/sample.py +++ b/bcbio/pipeline/sample.py @@ -295,7 +295,7 @@ def _merge_hla_fastq_inputs(data): """Merge HLA inputs from a split initial alignment. """ hla_key = ["hla", "fastq"] - hla_sam...
CWL: handle missing HLA inputs Correctly ignore analysis with HLA inputs set to None.
py
diff --git a/paramiko/sftp_file.py b/paramiko/sftp_file.py index <HASH>..<HASH> 100644 --- a/paramiko/sftp_file.py +++ b/paramiko/sftp_file.py @@ -65,15 +65,15 @@ class SFTPFile (BufferedFile): self._reqs = deque() def __del__(self): - self._close(async=True) + self._close(async_=True) ...
Rename an internal-only 'async' method kwarg for Python <I> compatibility. Fixes #<I>
py
diff --git a/yfinance/__init__.py b/yfinance/__init__.py index <HASH>..<HASH> 100644 --- a/yfinance/__init__.py +++ b/yfinance/__init__.py @@ -41,6 +41,7 @@ _PROGRESS_BAR = None def Tickers(tickers): tickers = tickers if isinstance( tickers, list) else tickers.replace(',', ' ').split() + tickers = [ti...
making sure tickers are always uppercase
py
diff --git a/tests/integration/cloud/test_cloud.py b/tests/integration/cloud/test_cloud.py index <HASH>..<HASH> 100644 --- a/tests/integration/cloud/test_cloud.py +++ b/tests/integration/cloud/test_cloud.py @@ -69,8 +69,8 @@ class CloudTests(CloudProxyCluster): def test_set_auth_provider(self): self.conne...
Fix cloud guardrails test to use user1 instead of cassandra
py
diff --git a/src/python/twitter/pants/targets/util.py b/src/python/twitter/pants/targets/util.py index <HASH>..<HASH> 100644 --- a/src/python/twitter/pants/targets/util.py +++ b/src/python/twitter/pants/targets/util.py @@ -29,13 +29,12 @@ def resolve(arg, clazz=Pants): """ if isinstance(arg, Compatibility.strin...
clean up some comments, per review feedback (sapling split of ae<I>eaece<I>b8cb<I>e<I>d<I>c6a)
py
diff --git a/core/transforms.py b/core/transforms.py index <HASH>..<HASH> 100644 --- a/core/transforms.py +++ b/core/transforms.py @@ -1,4 +1,4 @@ -from core import MIDI_PITCH, OFFSET_64 +from core import MIDI_PITCH, OFFSET_64, DURATION_64 def transpose(semitones): @@ -14,3 +14,12 @@ def shift(offset): po...
add stretch transform for augmentation/diminution
py
diff --git a/fut/core.py b/fut/core.py index <HASH>..<HASH> 100644 --- a/fut/core.py +++ b/fut/core.py @@ -276,7 +276,7 @@ class Core(object): # self.nucleus_id = re.search('userid : "([0-9]+)"', rc.text).group(1) # we'll get it later # === lanuch futweb - self.r.headers['Referer'] = self...
not needed, doesn't change anything
py
diff --git a/hgtools.py b/hgtools.py index <HASH>..<HASH> 100644 --- a/hgtools.py +++ b/hgtools.py @@ -99,6 +99,27 @@ class HGRepoManager(object): def get_tag(self): raise NotImplementedError() + def get_tags(self): + raise NotImplementedError() + + def get_strict_versions(self): + """ + Return all version ta...
Added some more helper methods to the HGRepoManager
py
diff --git a/thinc/tests/conftest.py b/thinc/tests/conftest.py index <HASH>..<HASH> 100644 --- a/thinc/tests/conftest.py +++ b/thinc/tests/conftest.py @@ -2,7 +2,12 @@ import pytest def pytest_addoption(parser): - parser.addoption("--slow", action="store_true", help="include slow tests") + try: + pars...
`conftest.py`: Handle exception caused by `pytest` options being added twice in CI builds (#<I>)
py
diff --git a/realtime/flood/flood_event.py b/realtime/flood/flood_event.py index <HASH>..<HASH> 100644 --- a/realtime/flood/flood_event.py +++ b/realtime/flood/flood_event.py @@ -571,8 +571,7 @@ REGIONAL DISASTER MANAGEMENT AGENCY 'content-contact': self.tr("""Pusat Pengendalian Operasi (Pusdalops) BPBD P...
[issues_<I>] Fix truncated address
py
diff --git a/pystalk/client.py b/pystalk/client.py index <HASH>..<HASH> 100644 --- a/pystalk/client.py +++ b/pystalk/client.py @@ -22,7 +22,7 @@ class Job(object): job_data = attr.ib() -if attr.__version_info__ >= (19, 2, 0): +if getattr(attr, "__version_info__", (0,)) >= (19, 2): _attrs_kwargs = dict(eq=...
safely check for attr.__version_info__
py
diff --git a/openquake/commands/plot_memory.py b/openquake/commands/plot_memory.py index <HASH>..<HASH> 100644 --- a/openquake/commands/plot_memory.py +++ b/openquake/commands/plot_memory.py @@ -27,7 +27,7 @@ def make_figure(plots): fig, ax = plt.subplots() ax.grid(True) - ax.set_ylabel('tasks') + ax....
Small fix [skip CI]
py
diff --git a/src/rez/cli/pip.py b/src/rez/cli/pip.py index <HASH>..<HASH> 100644 --- a/src/rez/cli/pip.py +++ b/src/rez/cli/pip.py @@ -2,6 +2,7 @@ Install a pip-compatible python package, and its dependencies, as rez packages. """ from __future__ import print_function +from argparse import REMAINDER def setup_p...
Add argument "extra" to rez-pip cli for additional pip install arguments
py
diff --git a/consoleprinter/__init__.py b/consoleprinter/__init__.py index <HASH>..<HASH> 100644 --- a/consoleprinter/__init__.py +++ b/consoleprinter/__init__.py @@ -2359,6 +2359,14 @@ def get_safe_string(s, extrachars=None): return s +def get_safe_filename_string(filepath): + """ + @type filepath: stri...
Sunday <I> July <I> (week:<I> day:<I>), <I>:<I>:<I>
py
diff --git a/openquake/settings.py b/openquake/settings.py index <HASH>..<HASH> 100644 --- a/openquake/settings.py +++ b/openquake/settings.py @@ -69,7 +69,7 @@ DEFAULT_USER = 'admin' # We need a 'default' database to make Django happy: DATABASES['default'] = { 'ENGINE': 'django.db.backends.postgresql_psycopg2',...
settings: Changed default Django DB settings to use the DB name specified in the openquake.cfg file (if it is defined). This caused a test failure in CI where a non-default DB name was being used ("oq_nhlib_integration" instead of just "openquake"). Former-commit-id: ddc<I>fee<I>fe<I>a<I>ddad<I>f<I>a9e5e7aebb
py
diff --git a/freshen/stepregistry.py b/freshen/stepregistry.py index <HASH>..<HASH> 100644 --- a/freshen/stepregistry.py +++ b/freshen/stepregistry.py @@ -43,6 +43,10 @@ class HookImpl(object): self.tags = tags self.func = func self.tags = tags + self.order = 0 + + def __repr__(...
Hook ordering, better hook repr, and tag bug fix
py
diff --git a/nodeshot/ui/default/tests.py b/nodeshot/ui/default/tests.py index <HASH>..<HASH> 100755 --- a/nodeshot/ui/default/tests.py +++ b/nodeshot/ui/default/tests.py @@ -133,3 +133,8 @@ class DefaultUiTest(TestCase): self.assertTrue(self.browser.execute_script("return Nodeshot.body.currentView.$el.attr('i...
UI: added selenium test for user profile #<I>
py
diff --git a/insteonplm/devices/securityHealthSafety.py b/insteonplm/devices/securityHealthSafety.py index <HASH>..<HASH> 100644 --- a/insteonplm/devices/securityHealthSafety.py +++ b/insteonplm/devices/securityHealthSafety.py @@ -42,7 +42,7 @@ class SecurityHealthSafety(DeviceBase): """ self.lightOnL...
Corrected _sensor_off_command_received
py
diff --git a/sllurp/llrp_proto.py b/sllurp/llrp_proto.py index <HASH>..<HASH> 100644 --- a/sllurp/llrp_proto.py +++ b/sllurp/llrp_proto.py @@ -142,9 +142,6 @@ ConnEvent_Name2Type = { } ConnEvent_Type2Name = reverse_dict(ConnEvent_Name2Type) -for m in ConnEvent_Name2Type: - i = ConnEvent_Name2Type[m] - ConnEve...
Remove useless code that should have been forgotten by previous refactoring
py
diff --git a/pyzabbix/sender.py b/pyzabbix/sender.py index <HASH>..<HASH> 100644 --- a/pyzabbix/sender.py +++ b/pyzabbix/sender.py @@ -405,7 +405,7 @@ class ZabbixSender(object): except Exception as err: # In case of error we should close connection, otherwise # we will cl...
Improved error handling Not every exception needs to have an msg attribute, so deal with that gracefully.
py
diff --git a/seleniumbase/fixtures/base_case.py b/seleniumbase/fixtures/base_case.py index <HASH>..<HASH> 100755 --- a/seleniumbase/fixtures/base_case.py +++ b/seleniumbase/fixtures/base_case.py @@ -440,14 +440,13 @@ class BaseCase(unittest.TestCase): def get_page_title(self): self.wait_for_ready_state_...
Update get_page_title() and combine get_title() into it
py
diff --git a/source/awesome_tool/mvc/controllers/state_data_flows.py b/source/awesome_tool/mvc/controllers/state_data_flows.py index <HASH>..<HASH> 100644 --- a/source/awesome_tool/mvc/controllers/state_data_flows.py +++ b/source/awesome_tool/mvc/controllers/state_data_flows.py @@ -396,7 +396,8 @@ def update_data_flow(...
Fix bug to support ports with data type None - As the type of the port was used for labeling the port in the GUI, an exception was thrown, when the data port was of type None (couldn't be converted to a string) - This is now prevented by checking for None and replacing the corresponding label part by "None"
py
diff --git a/salt/modules/rh_service.py b/salt/modules/rh_service.py index <HASH>..<HASH> 100644 --- a/salt/modules/rh_service.py +++ b/salt/modules/rh_service.py @@ -127,10 +127,8 @@ def status(name, sig=None): salt '*' service.status <service name> [service signature] ''' - sig = name if not sig el...
red hat standardizes on having status functions
py
diff --git a/venvctrl/venv/command.py b/venvctrl/venv/command.py index <HASH>..<HASH> 100644 --- a/venvctrl/venv/command.py +++ b/venvctrl/venv/command.py @@ -21,14 +21,12 @@ class CommandMixin(object): def _execute(cmd): """Run a command in a subshell.""" cmd = shlex.split(cmd) - print(cm...
Remove print lines in _execute function
py
diff --git a/insteonplm/tools.py b/insteonplm/tools.py index <HASH>..<HASH> 100644 --- a/insteonplm/tools.py +++ b/insteonplm/tools.py @@ -62,7 +62,7 @@ def console(loop, log, devicelist): if 1 == 1: device = conn.protocol.devices.get_device('14627a') - device.lightOnLevel.connect(self.async_ligh...
Updated tools.py for testing
py
diff --git a/aiotg/bot.py b/aiotg/bot.py index <HASH>..<HASH> 100644 --- a/aiotg/bot.py +++ b/aiotg/bot.py @@ -228,6 +228,18 @@ class Bot: json_result = await self.api_call("getMe") return json_result["result"] + async def leave_chat(self, chat_id): + """ + Use this method for your ...
Added bot.leave_chat() method (#<I>)
py
diff --git a/_pydevd_bundle/pydevd_constants.py b/_pydevd_bundle/pydevd_constants.py index <HASH>..<HASH> 100644 --- a/_pydevd_bundle/pydevd_constants.py +++ b/_pydevd_bundle/pydevd_constants.py @@ -262,7 +262,7 @@ def get_thread_id(thread): if tid is None: pid = get_pid() ...
Concurrency visulalizer: deadlocked threads are not marked (PY-<I>) Use get_ident() method instead of ident field because ident returns None (cherry picked from commit c<I>a6)
py
diff --git a/m.py b/m.py index <HASH>..<HASH> 100755 --- a/m.py +++ b/m.py @@ -395,6 +395,19 @@ Error: '/.../more/a.mkv' is not a file in '/.../media' >>> runE("unmark foo/bar.mkv") # doctest: +ELLIPSIS Error: '/.../bar.mkv' is not a file in '/.../media' +>>> runE("alias oops") +Error: 'oops' is a relative path +>>...
more tests for alias command errors
py
diff --git a/tinyrpc/client.py b/tinyrpc/client.py index <HASH>..<HASH> 100644 --- a/tinyrpc/client.py +++ b/tinyrpc/client.py @@ -16,10 +16,15 @@ class RPCClient(object): self.protocol = protocol self.transport = transport - def _send_and_handle_reply(self, req): - # sends and waits for r...
Add support for JSON-RPC Notifications
py
diff --git a/superset/security/manager.py b/superset/security/manager.py index <HASH>..<HASH> 100644 --- a/superset/security/manager.py +++ b/superset/security/manager.py @@ -990,9 +990,7 @@ class SupersetSecurityManager( # pylint: disable=too-many-public-methods self.get_datasource_access_error_o...
Enabled no-self-use pylint rule in security. Formatter (#<I>)
py
diff --git a/sumy/document/_paragraph.py b/sumy/document/_paragraph.py index <HASH>..<HASH> 100644 --- a/sumy/document/_paragraph.py +++ b/sumy/document/_paragraph.py @@ -5,10 +5,15 @@ from __future__ import division, print_function, unicode_literals from itertools import chain from ..utils import cached_property +...
Paragraph may contains only 'Sentence' instances
py
diff --git a/note/server.py b/note/server.py index <HASH>..<HASH> 100644 --- a/note/server.py +++ b/note/server.py @@ -371,3 +371,22 @@ class Note_Server(object): 'object': r_val} return json.dumps(r_msg) + + def Handle_Delete_Label(self, msg): + """ + :desc: Delete...
added function Handle_Delete_Label
py
diff --git a/python_modules/dagster/dagster/daemon/cli/__init__.py b/python_modules/dagster/dagster/daemon/cli/__init__.py index <HASH>..<HASH> 100644 --- a/python_modules/dagster/dagster/daemon/cli/__init__.py +++ b/python_modules/dagster/dagster/daemon/cli/__init__.py @@ -56,20 +56,6 @@ def _daemon_run_command(instan...
Remove deprecated daemon health-check cli (#<I>) This has been deprecated for several minor releases and is not used
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -6,6 +6,7 @@ Distributed under the ISC License (see LICENSE) from distutils.core import setup, Command from distutils.errors import DistutilsOptionError from unittest import TestLoader, TextTestRunner +import sys import st...
Make failed tests return proper exit/status code I was hoping that there was some kind of magic that made the test runner call sys.exit in the same way the .main call does, but apparently not. Would be silly if it did anyway.
py
diff --git a/PyFunceble.py b/PyFunceble.py index <HASH>..<HASH> 100755 --- a/PyFunceble.py +++ b/PyFunceble.py @@ -2087,6 +2087,7 @@ class Referer(object): "km", "kp", "lb", + "lr", "mc", "mh", "mil", @@ -3994,7 +3995,7 @@ if __nam...
Introduction of `lr` into the list of ignored extensions cf: No whois server.
py
diff --git a/msvccompiler.py b/msvccompiler.py index <HASH>..<HASH> 100644 --- a/msvccompiler.py +++ b/msvccompiler.py @@ -219,8 +219,9 @@ class MSVCCompiler (CCompiler) : self.lib = "lib.exe" self.preprocess_options = None - self.compile_options = [ '/nologo', '/Ox', '/MD', '/W3' ] - ...
Add /GX to 'compile_options'. This is definitely needed for C++ source; according to the MS docs it enables exception-handling, and (according to Alex Martelli <<EMAIL>>) is needed to compile without getting warnings from standard C++ library headers. Apparently it doesn't cause any problems with C code, so I haven't...
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ from versiontag import get_version, cache_git_tag # NOQA packages = find_packages('src') install_requires = [ - 'PyJWT>=1.4.2', + 'PyJWT>=1.4.2,<2.0.0', 'cryptography>=1.7.1', 'Django>=2.2',...
PyJWT v2 doesn't work yet
py
diff --git a/bugzilla/bug.py b/bugzilla/bug.py index <HASH>..<HASH> 100644 --- a/bugzilla/bug.py +++ b/bugzilla/bug.py @@ -5,7 +5,6 @@ VALID_STATUS = ["RESOLVED", "ASSIGNED", "NEW", "UNCONFIRMED"] VALID_RESOLUTION = ["FIXED", "INCOMPLETE", "INVALID", "WORKSFORME", "DUPLICATE", "WONTFIX"] - class BugException(Exce...
removing unneeded white space, no functional changes
py
diff --git a/vais/planet.py b/vais/planet.py index <HASH>..<HASH> 100644 --- a/vais/planet.py +++ b/vais/planet.py @@ -6,14 +6,6 @@ import aikif.environments.worlds as my_world fldr = os.getcwd() + os.sep + 'data' + os.sep + 'worlds' -def TEST(): - """ - testing planet evolution to build a virtual world -...
removed TEST function in vais, as now done in test_planet
py
diff --git a/lib/drizzlepac/processInput.py b/lib/drizzlepac/processInput.py index <HASH>..<HASH> 100644 --- a/lib/drizzlepac/processInput.py +++ b/lib/drizzlepac/processInput.py @@ -1095,9 +1095,8 @@ def checkDGEOFile(filenames): ustop = userStop(message) while ustop is None: ...
Fix incorrect indent introduced when fixing the 'input' bug
py
diff --git a/ca/django_ca/extensions.py b/ca/django_ca/extensions.py index <HASH>..<HASH> 100644 --- a/ca/django_ca/extensions.py +++ b/ca/django_ca/extensions.py @@ -578,6 +578,8 @@ class NameConstraints(Extension): def __bool__(self): return bool(self.permitted) or bool(self.excluded) + if six.PY2:...
fix bool testing in py2
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -36,8 +36,8 @@ setup( install_requires=['coverage', 'cython', 'distorm3>=0', 'elasticsearch', 'funcsigs', 'filemagic', 'pefile', 'py2neo', 'pymongo', 'pytest>=2.5', 'pytest-co...
adding tabulate to setup for CLI
py
diff --git a/glue/ligolw/lsctables.py b/glue/ligolw/lsctables.py index <HASH>..<HASH> 100644 --- a/glue/ligolw/lsctables.py +++ b/glue/ligolw/lsctables.py @@ -845,6 +845,10 @@ class SimInspiralTable(table.Table): return self.get_spin_mag(1) elif column == 'spin2': return self.get_spin_mag(2) + elif column =...
added total_mass column for SimInspiral Table
py
diff --git a/neo4jrestclient/tests.py b/neo4jrestclient/tests.py index <HASH>..<HASH> 100644 --- a/neo4jrestclient/tests.py +++ b/neo4jrestclient/tests.py @@ -177,7 +177,7 @@ class IndexesTestCase(RelationshipsTestCase): index = self.gdb.nodes.indexes.create(name="doe") index["surnames"]["d"] = n1 ...
Passing pyflakes and pep<I> on tests.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -93,8 +93,14 @@ class distcheck(sdist): assert process.returncode == 0 tracked_files = out.splitlines() - for ignore in [".gitignore", ".codecov.yml", - ".github...
Fix distcheck exclude some new files that are missing in the release tarball
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -6,8 +6,8 @@ from wcut import __version__ setup( name='wcut', version=__version__, - author='Kyle A. Meyer', - author_email='meyerkya@gmail.com', + author='Kyle Meyer', + author_email='kyle@kyleam.com', ...
Update author information in setup.py
py
diff --git a/stimela/cargo/cab/pybdsm/src/run.py b/stimela/cargo/cab/pybdsm/src/run.py index <HASH>..<HASH> 100644 --- a/stimela/cargo/cab/pybdsm/src/run.py +++ b/stimela/cargo/cab/pybdsm/src/run.py @@ -1,7 +1,7 @@ import os import sys import re -import bdsf +import bdsf as bdsm #bdsm it is and bdsm it shall remain ...
woops bdsm the import should be renamed
py
diff --git a/core/datastore_rpc.py b/core/datastore_rpc.py index <HASH>..<HASH> 100644 --- a/core/datastore_rpc.py +++ b/core/datastore_rpc.py @@ -382,7 +382,10 @@ class MultiRpc(object): This mimics the UserRPC.wait() method. """ - apiproxy_stub_map.UserRPC.wait_all(self.__rpcs) + # XXX wait_all() re...
We don't have wait_all() before SDK <I>.
py
diff --git a/fusesoc/core.py b/fusesoc/core.py index <HASH>..<HASH> 100644 --- a/fusesoc/core.py +++ b/fusesoc/core.py @@ -225,7 +225,7 @@ class Core: if self.depend: print("\nCommon dependencies: " + show_list(self.depend)) for s in section.SECTION_MAP: - if s == 'main': + ...
Fix core-info after fileSet was added
py
diff --git a/sanic/server.py b/sanic/server.py index <HASH>..<HASH> 100644 --- a/sanic/server.py +++ b/sanic/server.py @@ -522,5 +522,3 @@ def serve_multiple(server_settings, workers): for process in processes: process.terminate() server_settings.get('sock').close() - - asyncio.get_event_loop().st...
The main process that spawn sub processes doesn't run any loop. let's not try to stop one
py
diff --git a/scour/scour.py b/scour/scour.py index <HASH>..<HASH> 100644 --- a/scour/scour.py +++ b/scour/scour.py @@ -3758,9 +3758,13 @@ def start(options, input, output): out_string = scourString(in_string, options).encode("UTF-8") output.write(out_string) - # Close input and output files - input.cl...
Do not attempt to close stdin/stdout file objects
py
diff --git a/dnsyo/dnsyo.py b/dnsyo/dnsyo.py index <HASH>..<HASH> 100644 --- a/dnsyo/dnsyo.py +++ b/dnsyo/dnsyo.py @@ -213,7 +213,7 @@ class lookup(object): if progress: sys.stdout.write("\n\n") - logging.debug("There are {0} unique resulsts".format(len(self.resultsColated))) + ...
Fixed small typo (resulsts to results)
py
diff --git a/src/werkzeug/wrappers/base_response.py b/src/werkzeug/wrappers/base_response.py index <HASH>..<HASH> 100644 --- a/src/werkzeug/wrappers/base_response.py +++ b/src/werkzeug/wrappers/base_response.py @@ -320,8 +320,8 @@ class BaseResponse(object): raise ValueError("Empty status argument") ...
Change "request" to "response" in BaseResponse.get_data docstring
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -2,11 +2,11 @@ from distutils.core import setup from setuptools import find_packages -required = [] +required = ['numpy', 'scipy', 'pandas', 'patsy', 'statsmodels', 'matplotlib'] setup( name="ggplot", - version...
Add missing requirements to setup.py ggplot's requirements are currently missing, which makes pip installs appear to succeed (when they will not work). I also bumped the version number up so that you can successfully add this updated setup.py file to pypi.
py
diff --git a/saltcloud/utils/__init__.py b/saltcloud/utils/__init__.py index <HASH>..<HASH> 100644 --- a/saltcloud/utils/__init__.py +++ b/saltcloud/utils/__init__.py @@ -117,7 +117,7 @@ def minion_conf_string(opts, vm_): vmgrains = vm_.get('map_grains', {}) if vmgrains: minion['grains'].update(vmgra...
Change the minion config to use block style yaml
py
diff --git a/faker/utils/loading.py b/faker/utils/loading.py index <HASH>..<HASH> 100644 --- a/faker/utils/loading.py +++ b/faker/utils/loading.py @@ -3,4 +3,4 @@ import os def list_module(module): path = os.path.dirname(module.__file__) - return [i for i in os.listdir(path) if os.path.isdir(os.path.join(pat...
exclude directories starting with `_` when listing a module
py
diff --git a/cosmic_ray/config.py b/cosmic_ray/config.py index <HASH>..<HASH> 100644 --- a/cosmic_ray/config.py +++ b/cosmic_ray/config.py @@ -4,10 +4,10 @@ import yaml def load_config(filename=None): if filename is None: - return yaml.load(sys.stdin) + return yaml.safe_load(sys.stdin) with...
Using yaml.safe_load instead of load.
py
diff --git a/eulfedora/models.py b/eulfedora/models.py index <HASH>..<HASH> 100644 --- a/eulfedora/models.py +++ b/eulfedora/models.py @@ -63,7 +63,7 @@ class DatastreamObject(object): is set, it takes precedence over :attr:`content`.''' def __init__(self, obj, id, label, mimetype=None, versionable=False,...
restore former default checksum type of MD5
py
diff --git a/simpl/utils/cli.py b/simpl/utils/cli.py index <HASH>..<HASH> 100644 --- a/simpl/utils/cli.py +++ b/simpl/utils/cli.py @@ -43,6 +43,8 @@ class HelpfulParser(argparse.ArgumentParser): % (message, " ".join(sys.argv))) if print_help: self.print_help() + else...
fix(parser): even more helpful
py
diff --git a/web3/utils/abi.py b/web3/utils/abi.py index <HASH>..<HASH> 100644 --- a/web3/utils/abi.py +++ b/web3/utils/abi.py @@ -24,11 +24,14 @@ def filter_by_type(_type, contract_abi): def filter_by_name(name, contract_abi): - return [abi for abi in contract_abi if abi.get('name') == name] + return [abi f...
ABI iteration changes as suggested by PR discussion
py
diff --git a/salt/modules/apt.py b/salt/modules/apt.py index <HASH>..<HASH> 100644 --- a/salt/modules/apt.py +++ b/salt/modules/apt.py @@ -306,7 +306,8 @@ def install(name=None, if pkg_params is None or len(pkg_params) == 0: return {} elif pkg_type == 'file': - cmd = 'dpkg -i {verify} {pkg}'.f...
Defaults to keeping old configuration, avoids hanging
py
diff --git a/nptdms/tdms.py b/nptdms/tdms.py index <HASH>..<HASH> 100644 --- a/nptdms/tdms.py +++ b/nptdms/tdms.py @@ -809,7 +809,7 @@ class _TdmsmxDAQPropertyInfo(object): def _read_metadata(self, f): length = _read_long(f) - self.property_name = f.read(length) + self.property_name = f.re...
Expose TDMSObject's info as properties Conflicts: nptdms/tdms.py
py
diff --git a/allegedb/allegedb/__init__.py b/allegedb/allegedb/__init__.py index <HASH>..<HASH> 100644 --- a/allegedb/allegedb/__init__.py +++ b/allegedb/allegedb/__init__.py @@ -599,9 +599,6 @@ class ORM(object): for (branch, parent, parent_turn, parent_tick, end_turn, end_tick) in self.query.all_branches(): ...
Really delete that commented out global loading thing
py
diff --git a/salt/modules/pip.py b/salt/modules/pip.py index <HASH>..<HASH> 100644 --- a/salt/modules/pip.py +++ b/salt/modules/pip.py @@ -827,6 +827,9 @@ def install(pkgs=None, # pylint: disable=R0912,R0913,R0914 if env_vars: if isinstance(env_vars, dict): + for k, v in env_vars.iteritems()...
* Before passing on the env_vars dictionary ensure all values are strings. Fixes #<I>
py
diff --git a/b2handle/tests/main_test_script.py b/b2handle/tests/main_test_script.py index <HASH>..<HASH> 100644 --- a/b2handle/tests/main_test_script.py +++ b/b2handle/tests/main_test_script.py @@ -13,6 +13,7 @@ from handleclient_readaccess_faked_10320_test import EUDATHandleClientReadaccess from clientcredentials_te...
Added UtilConfigTestCase to main_test_script
py
diff --git a/angr/analyses/calling_convention.py b/angr/analyses/calling_convention.py index <HASH>..<HASH> 100644 --- a/angr/analyses/calling_convention.py +++ b/angr/analyses/calling_convention.py @@ -105,7 +105,9 @@ class CallingConventionAnalysis(Analysis): if self._function.is_simprocedure: i...
CCA: Ignore binary name when finding declarations for SimProcedures. (#<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( "core-agent-manager = scout_apm.core.cli.core_agent_manager:main" ] }, - install_requires=["psutil", "requests"], + install_requires=["psutil>=5,<6", "requests>=2,<3"], ...
Pin to major versions of requirements (#<I>) This will prevent new releases from breaking us unexpectedly.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -52,7 +52,7 @@ setup( # project is installed. For an analysis of "install_requires" vs pip's # requirements files see: # https://packaging.python.org/en/latest/technical.html#install-requires-vs-requirements-fil...
Upgrade requests library DataPusher doesn't work with this ancient version of requests.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -107,7 +107,7 @@ setup( }, keywords="dna genes genetics genealogy snps chromosomes genotype " "bioinformatics ancestry", - install_requires=["numpy", "pandas", "matplotlib", "atomicwrites", "snps"], + inst...
Fix `snps` version
py
diff --git a/tortilla/wrappers.py b/tortilla/wrappers.py index <HASH>..<HASH> 100644 --- a/tortilla/wrappers.py +++ b/tortilla/wrappers.py @@ -69,6 +69,7 @@ class Client(object): self.headers = bunch.Bunch() self.debug = debug self.cache = {} + self.session = requests.session() ...
Add support for cookies #<I>
py
diff --git a/proselint/checks/uncomparables/misc.py b/proselint/checks/uncomparables/misc.py index <HASH>..<HASH> 100644 --- a/proselint/checks/uncomparables/misc.py +++ b/proselint/checks/uncomparables/misc.py @@ -64,7 +64,9 @@ def check(text): "quite", "largely", "extremely", - "incr...
Add "kind of" and "mildly" to uncomparables (#<I>) This commit is based on a user report: > 'very unique' is caught, but not 'kind of unique' or 'mildly unique' or similar.
py
diff --git a/cassandra/cqlengine/connection.py b/cassandra/cqlengine/connection.py index <HASH>..<HASH> 100644 --- a/cassandra/cqlengine/connection.py +++ b/cassandra/cqlengine/connection.py @@ -171,12 +171,7 @@ def register_connection(name, hosts=None, consistency=None, lazy_connect=False, if name in _connections...
remove not-None restriction on hosts PYTHON-<I>
py
diff --git a/tornado/auth.py b/tornado/auth.py index <HASH>..<HASH> 100644 --- a/tornado/auth.py +++ b/tornado/auth.py @@ -952,7 +952,7 @@ class GoogleOAuth2Mixin(OAuth2Mixin): _OAUTH_NO_CALLBACKS = False def authorize_redirect(self, redirect_uri=None, client_id=None, - scope=['ope...
Rename the object param in GoogleOAuth2Mixin from overwrites to extra_params.
py